apply_filters( 'image_downsize', bool|array $downsize, int $id, string|int[] $size )
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
File: wp-includes/media.php
Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/image_downsize