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

Filters whether to preempt calculating the image resize dimensions.


Description Description

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


Top ↑

Parameters Parameters

$null

(null|mixed) Whether to preempt output of the resize dimensions.

$orig_w

(int) Original width in pixels.

$orig_h

(int) Original height in pixels.

$dest_w

(int) New width in pixels.

$dest_h

(int) New height in pixels.

$crop

(bool|array) Whether to crop image to specified width and height or resize. An array can specify positioning of the crop area. Default false.


Top ↑

Source Source

File: wp-includes/media.php

View on Trac



Top ↑

Changelog Changelog

Changelog
Version Description
3.4.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.