Summery Summery

Filters whether to preempt calculating the image resize dimensions.

Syntax Syntax

apply_filters( 'image_resize_dimensions', null|mixed $null, int $orig_w, int $orig_h, int $dest_w, int $dest_h, bool|array $crop )

Description Description

Passing a non-null value to the filter will effectively short-circuit image_resize_dimensions(), returning that value instead.

Parameters Parameters


(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.

Source Source

File: wp-includes/media.php


Changelog Changelog

Version Description
3.4.0 Introduced.


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.