Filter hook 'image_downsize'
in WP Core File wp-includes/media.php at line 207
Description
Filters whether to preempt the output of image_downsize(). Returning a truthy value from the filter will effectively short-circuit down-sizing the image, returning that value instead.
Occurrences
Filename |
Line Number |
wp-includes/media.php |
207 |
wp-includes/media.php |
4437 |
Parameters
Type |
Name |
Description |
bool|array |
$downsize |
Whether to short-circuit the image downsize. |
int |
$id |
Attachment ID for image. |
string|int[] |
$size |
Requested image size. Can be any registered image size name, or an array of width and height values in pixels (in that order). |
PHP Doc
/**
* Filters whether to preempt the output of image_downsize().
*
* Returning a truthy value from the filter will effectively short-circuit
* down-sizing the image, returning that value instead.
*
* @since 2.5.0
*
* @param bool|array $downsize Whether to short-circuit the image downsize.
* @param int $id Attachment ID for image.
* @param string|int[] $size Requested image size. Can be any registered image size name, or
* an array of width and height values in pixels (in that order).
*/