wp_get_attachment_image – filter

Filters the HTML img element representing an image attachment. 

Parameters

.
( 5.6.0 ) . .
( string ) $html HTML img element or empty string on failure. . . .
( int ) $attachment_id 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). . . .
( bool ) $icon Whether the image should be treated as an icon. . . .
( string[] ) $attr Array of attribute values for the image markup, keyed by attribute name. See wp_get_attachment_image(). . . .
API Letters: ,,,

Implementers