apply_filters( 'wp_constrain_dimensions', array $dimensions, int $current_width, int $current_height, int $max_width, int $max_height )

Filters dimensions to constrain down-sampled images to.

Description Description

Parameters Parameters


(array) The image width and height.


(int) The current width of the image.


(int) The current height of the image.


(int) The maximum width permitted.


(int) The maximum height permitted.

Top ↑

Source Source

File: wp-includes/media.php

View on Trac

Top ↑

Changelog Changelog

Version Description
4.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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