Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-includes/media.php | apply_filters | 503 | /** * 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. */ |
Hook Parameters
Parameter Type | Name | Description |
---|---|---|
int[] | $dimension | s { |
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. |