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



editor_max_image_size › Hooks de Filtros WordPress

Desde2.5.0
Obsoleton/a
› apply_filters( 'editor_max_image_size', array( $max_width, $max_height )
Parâmetros: (3)
  • () 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. }
    Required: Yes
  • () size Requested image size. Can be any registered image size name, or an array of width and height values in pixels (in that order).
    Required: Yes
  • () 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:
Codex:

Filters the maximum image size dimensions for the editor.





Fonte

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