big_image_size_threshold

最后更新于:2021-11-25 21:28:32

apply_filters( ‘big_image_size_threshold’, int $threshold, array $imagesize, string $file, int $attachment_id )

Filters the “BIG image” threshold value.

参数

$threshold

(int)
The threshold value in pixels. Default 2560.

$imagesize

(array)
Indexed array of the image width and height in pixels.

  • (int) The image width.
  • ‘1’
    (int) The image height.

$file

(string)
Full path to the uploaded image file.

$attachment_id

(int)
Attachment post ID.

源文件

文件: gc-admin/includes/image.php

View on Trac