WordPress at a glance
filter is not described

wp_get_attachment_image_src filter-hook . WP 4.3.0

Filters the image src result.


add_filter( 'wp_get_attachment_image_src', 'filter_function_name_2938', 10, 4 );
function filter_function_name_2938( $image, $attachment_id, $size, $icon ){
	// filter...

	return $image;
Either array with src, width & height, icon src, or false.
Image attachment ID.
Size of image. Image size or array of width and height values (in that order).
Default: 'thumbnail'
Whether the image should be treated as an icon.
Default: false


Since 4.3.0 Introduced.

Where the hook is called

wp-includes/media.php 963
return apply_filters( 'wp_get_attachment_image_src', $image, $attachment_id, $size, $icon );

Where the hook is used (in WP core)

Usage not found!