Filters the attachment image source result.
$imagearray|false$0string
$1int
$2int
$3bool
$attachment_idint$sizestring|int[]$iconboolwp-includes/media.php:1024wp_get_attachment_image_src() * } * @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. */ return apply_filters( 'wp_get_attachment_image_src', $image, $attachment_id, $size, $icon );} /** * Gets an HTML img element representing an image attachment. * * While `$size` will accept an array, it is better to register a size withIntroduced in 4.3.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.