Used By
Used By | Description |
---|---|
wp-includes/media.php: wp_constrain_dimensions() | Calculates the new dimensions for a down-sampled image. |
Filters dimensions to constrain down-sampled images to.
(int[]) An array of width and height values.
(int) The height in pixels.
(int) The current width of the image.
(int) The current height of the image.
(int) The maximum width permitted.
(int) The maximum height permitted.
File: wp-includes/media.php
Version | Description |
---|---|
4.1.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_constrain_dimensions