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.
Parameters
- $dimensions
-
The image width and height.
- $current_width
-
The current width of the image.
- $current_height
-
The current height of the image.
- $max_width
-
The maximum width permitted.
- $max_height
-
The maximum height permitted.
Source
File: wp-includes/media.php
Changelog
Version | Description |
---|---|
WP-4.1.0 | Introduced. |