WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about load_image_to_edit_attachmenturl

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-admin/includes/image.php apply_filters 1108 /**
* 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.
*
* @since 3.1.0
*
* @param string|false $image_url Current image URL.
* @param int $attachment_id Attachment ID.
* @param string|int[] $size Requested image size. Can be any registered image size name, or
* an array of width and height values in pixels (in that order).
*/

Hook Parameters

Parameter Type Name Description
string|false $image_url Current image URL.
int $attachment_id Attachment ID.
string|int[] $size Requested image size. Can be any registered image size name, or