Filters the maximum image size dimensions for the editor.
$max_image_sizeint[]$0int
$1int
$sizestring|int[]$contextstringwp-includes/media.php:138image_constrain_size_for_editor() * @param string|int[] $size Requested image size. Can be any registered image size name, or * an array of width and height values in pixels (in that order). * @param string $context The context the image is being resized for. * Possible values are 'display' (like in a theme) * or 'edit' (like inserting into an editor). */ list( $max_width, $max_height ) = apply_filters( 'editor_max_image_size', array( $max_width, $max_height ), $size, $context ); return wp_constrain_dimensions( $width, $height, $max_width, $max_height );} /** * Retrieves width and height attributes using given width and height values.Introduced in 2.5.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.