Description
Filters dimensions to constrain down-sampled images to. }
Occurrences
Filename | Line Number |
---|---|
wp-includes/media.php | 513 |
Parameters
Type | Name | Description |
---|---|---|
int[] | $dimensions | { An array of width and height values. |
int | $current_width | The current width of the image. |
int | $current_height | The current height of the image. |
int | $max_width | The maximum width permitted. |
int | $max_height | The maximum height permitted. |
PHP Doc
/**
* Filters dimensions to constrain down-sampled images to.
*
* @since 4.1.0
*
* @param int[] $dimensions {
* An array of width and height values.
*
* @type int $0 The width in pixels.
* @type int $1 The height in pixels.
* }
* @param int $current_width The current width of the image.
* @param int $current_height The current height of the image.
* @param int $max_width The maximum width permitted.
* @param int $max_height The maximum height permitted.
*/