wp_image_resize_identical_dimensions WordPress Filter Hook

The wp_image_resize_identical_dimensions Wordpress hook is a filter hook that allows you to modify the width and height of an image before it is resized. This is useful for images that have different width and height values, but you want the resized image to have the same width and height.

apply_filters( 'wp_image_resize_identical_dimensions', bool $proceed, int $orig_w, int $orig_h ) #

Filters whether to proceed with making an image sub-size with identical dimensions with the original/source image. Differences of 1px may be due to rounding and are ignored.


Parameters

$proceed

(bool)The filtered value.

$orig_w

(int)Original image width.

$orig_h

(int)Original image height.


Top ↑

Source

File: wp-includes/media.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.3.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More