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.


Top ↑

Source Source

File: wp-includes/media.php

View on Trac


Top ↑

Changelog Changelog

Changelog
Version Description
4.3.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.