Filters the HTML img element representing an image attachment.
$htmlstring$attachment_idint$sizestring|int[]$iconbool$attrstring[]wp-includes/media.php:1201wp_get_attachment_image() * @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. * @param string[] $attr Array of attribute values for the image markup, keyed by attribute name. * See wp_get_attachment_image(). */ return apply_filters( 'wp_get_attachment_image', $html, $attachment_id, $size, $icon, $attr );} /** * Gets the URL of an image attachment. * * @since 4.4.0Introduced in 5.6.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.