Filters whether to preempt the output of image_downsize() .
Description
Returning a truthy value from the filter will effectively short-circuit down-sizing the image, returning that value instead.
Parameters
$downsize
bool|array- Whether to short-circuit the image downsize.
$id
int- Attachment ID for image.
$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).
Source
* @param bool|array $downsize Whether to short-circuit the image downsize.
Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.