Description
Filters the attachment image source result. }
Occurrences
Filename | Line Number |
---|---|
wp-includes/media.php | 1019 |
Parameters
Type | Name | Description |
---|---|---|
array|false | $image | { Array of image data, or boolean false if no image is available. |
int | $attachment_id | Image 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). |
bool | $icon | Whether the image should be treated as an icon. |
PHP Doc
/**
* Filters the attachment image source result.
*
* @since 4.3.0
*
* @param array|false $image {
* Array of image data, or boolean false if no image is available.
*
* @type string $0 Image source URL.
* @type int $1 Image width in pixels.
* @type int $2 Image height in pixels.
* @type bool $3 Whether the image is a resized image.
* }
* @param int $attachment_id Image 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).
* @param bool $icon Whether the image should be treated as an icon.
*/