Description
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.
Occurrences
Filename | Line Number |
---|---|
wp-admin/includes/image.php | 1200 |
Parameters
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 an array of width and height values in pixels (in that order). |
PHP Doc
/**
* 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).
*/