Filter hook 'editor_max_image_size'

in WP Core File wp-includes/media.php at line 133

Description

Filters the maximum image size dimensions for the editor. }

Occurrences

Filename Line Number
wp-includes/media.php 133

Parameters

Type Name Description
int[] $max_image_size { An array of width and height values.
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).
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).

PHP Doc

/**
	 * Filters the maximum image size dimensions for the editor.
	 *
	 * @since 2.5.0
	 *
	 * @param int[]        $max_image_size {
	 *     An array of width and height values.
	 *
	 *     @type int $0 The maximum width in pixels.
	 *     @type int $1 The maximum height in pixels.
	 * }
	 * @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).
	 */