editor_max_image_size

最后更新于:2021-11-26 09:03:02

apply_filters( ‘editor_max_image_size’, int[] $max_image_size, string|int[] $size, string $context )

Filters the maximum image size dimensions for the editor.

参数

$max_image_size

(int[])
An array of width and height values.

  • (int) The maximum width in pixels.
  • ‘1’
    (int) The maximum height in pixels.

$size

(string|int[])
Requested image size. Can be any registered image size name, or an array of width and height values in pixels (in that order).

$context

(string)
The context the image is being resized for. Possible values are ‘display’ (like in a theme) or ‘edit’ (like inserting into an editor).

源文件

文件: gc-includes/media.php

View on Trac