Summery Summery
Filters whether to preempt calculating the image resize dimensions.
Syntax Syntax
Description Description
Passing a non-null value to the filter will effectively short-circuit image_resize_dimensions(), returning that value instead.
Parameters Parameters
- $null
-
Whether to preempt output of the resize dimensions.
- $orig_w
-
Original width in pixels.
- $orig_h
-
Original height in pixels.
- $dest_w
-
New width in pixels.
- $dest_h
-
New height in pixels.
- $crop
-
Whether to crop image to specified width and height or resize. An array can specify positioning of the crop area. Default false.
Source Source
File: wp-includes/media.php
Advertisement
Changelog Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |