Filters the path to an attachment’s URL when editing the image.
The filter is only evaluated if the file isn’t stored locally and allow_url_fopen is enabled on the server.
$image_urlstring|false
$attachment_idint
$sizestring|int[]
$filepath = apply_filters( 'load_image_to_edit_attachmenturl', wp_get_attachment_url( $attachment_id ), $attachment_id, $size );
| Version | Description |
|---|---|
| 3.1.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/load_image_to_edit_attachmenturl