apply_filters( 'wp_get_attachment_image_src', array|false $image , int $attachment_id , string|array $size , bool $icon )
Filters the image src result.
Description Description
Parameters Parameters
- $image
-
(array|false) Either array with src, width & height, icon src, or false.
- $attachment_id
-
(int) Image attachment ID.
- $size
-
(string|array) Size of image. Image size or array of width and height values (in that order). Default 'thumbnail'.
- $icon
-
(bool) Whether the image should be treated as an icon. Default false.
Source Source
File: wp-includes/media.php
Changelog Changelog
Version | Description |
---|---|
4.3.0 | Introduced. |