apply_filters( 'wp_get_attachment_image_src', array|false $image, int $attachment_id, string|array $size, bool $icon )

Filters the image src result.


Parameters

$image

Either array with src, width & height, icon src, or false.

$attachment_id

Image attachment ID.

$size

Size of image. Image size or array of width and height values (in that order). Default 'thumbnail'.

$icon

Whether the image should be treated as an icon. Default false.


Source

File: wp-includes/media.php

View on GitHub



Changelog

Changelog
Version Description
WP-4.3.0 Introduced.