Used By
Used By | Description |
---|---|
wp-includes/media.php: image_resize_dimensions() | Retrieves calculated resize dimensions for use in WP_Image_Editor. |
Filters whether to preempt calculating the image resize dimensions.
Returning a non-null value from the filter will effectively short-circuit image_resize_dimensions(), returning that value instead.
(null|mixed) Whether to preempt output of the resize dimensions.
(int) Original width in pixels.
(int) Original height in pixels.
(int) New width in pixels.
(int) New height in pixels.
(bool|array) Whether to crop image to specified width and height or resize. An array can specify positioning of the crop area. Default false.
File: wp-includes/media.php
Version | Description |
---|---|
3.4.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/image_resize_dimensions