WordPress at a glance
filter is not described

wp_get_attachment_image_attributes filter-hook . WP 2.8.0

Filters the list of attachment image attributes.

Usage

add_filter( 'wp_get_attachment_image_attributes', 'filter_function_name_4454', 10, 3 );
function filter_function_name_4454( $attr, $attachment, $size ){
	// filter...

	return $attr;
}
$attr(string[])
Array of attribute values for the image markup, keyed by attribute name. See wp_get_attachment_image().
$attachment(WP_Post)
Image attachment post.
$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).

Changelog

Since 2.8.0 Introduced.

Where the hook is called

wp_get_attachment_image()
wp_get_attachment_image_attributes
wp-includes/media.php 1090
$attr = apply_filters( 'wp_get_attachment_image_attributes', $attr, $attachment, $size );

Where in WP core the hook is used WordPress

wp-includes/media.php 1966
add_filter( 'wp_get_attachment_image_attributes', '_wp_post_thumbnail_class_filter' );
wp-includes/media.php 1979
remove_filter( 'wp_get_attachment_image_attributes', '_wp_post_thumbnail_class_filter' );