Used By
Used By | Description |
---|---|
wp-includes/media.php: image_constrain_size_for_editor() | Scale down the default size of an image. |
Filters the maximum image size dimensions for the editor.
(int[]) An array of width and height values.
(int) The maximum height in pixels.
(string|array) Size of what the result image should be.
(string) The context the image is being resized for. Possible values are 'display' (like in a theme) or 'edit' (like inserting into an editor).
File: wp-includes/media.php
Version | Description |
---|---|
2.5.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/editor_max_image_size