editor_max_image_size

editor_max_image_size

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('editor_max_image_size') is found 1 times:

  • /wp-includes/media.php line 133
    	 * @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.
    

See this hook used in plugins: