Filters the attachment image source result.
Parameters
$image
array|false- Array of image data, or boolean false if no image is available.
0
stringImage source URL.1
intImage width in pixels.2
intImage height in pixels.3
boolWhether the image is a resized image.
$attachment_id
int- Image attachment ID.
$size
string|int[]- Requested image size. Can be any registered image size name, or an array of width and height values in pixels (in that order).
$icon
bool- Whether the image should be treated as an icon.
Source
return apply_filters( 'wp_get_attachment_image_src', $image, $attachment_id, $size, $icon );
Changelog
Version | Description |
---|---|
4.3.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.