Uma área de pesquisa sobre o WordPress para devs e autores do tema

editor_max_image_size ›

apply_filters( 'editor_max_image_size', array( $max_width, $max_height )
Parâmetros: (3)
  • (array) $max_image_size An array with the width as the first element, and the height as the second element.
    Required: Yes
  • (string|array) $size Size of what the result image should be.
    Required: Yes
  • (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).
    Required: Yes
Definido em:

Filters the maximum image size dimensions for the editor.


list( $max_width, $max_height ) = apply_filters( 'editor_max_image_size', array( $max_width, $max_height ), $size, $context );