Filters the maximum image size dimensions for the editor.
Parameters
$max_image_sizeint[]- An array of width and height values.
0intThe maximum width in pixels.1intThe maximum height in pixels.
$sizestring|int[]- Requested image size. Can be any registered image size name, or an array of width and height values in pixels (in that order).
$contextstring- The context the image is being resized for.
Possible values are'display'(like in a theme) or'edit'(like inserting into an editor).
Source
* an array of width and height values in pixels (in that order).
Changelog
| Version | Description |
|---|---|
| 2.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.