WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about image_resize_dimensions

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/media.php apply_filters 556 /**
* 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.
*
* @since 3.4.0
*
* @param null|mixed $null Whether to preempt output of the resize dimensions.
* @param int $orig_w Original width in pixels.
* @param int $orig_h Original height in pixels.
* @param int $dest_w New width in pixels.
* @param int $dest_h New height in pixels.
* @param bool|array $crop Whether to crop image to specified width and height or resize.
* An array can specify positioning of the crop area. Default false.
*/

Hook Parameters

Parameter Type Name Description
null|mixed $null Whether to preempt output of the resize dimensions.
int $orig_w Original width in pixels.
int $orig_h Original height in pixels.
int $dest_w New width in pixels.
int $dest_h New height in pixels.
bool|array $crop Whether to crop image to specified width and height or resize.