big_image_size_threshold
apply_filters( ‘big_image_size_threshold’, int $threshold , array $imagesize , string $file , int $attachment_id )
过滤钩子:过滤“大图像”阈值。
Filter Hook: Filters the “BIG image” threshold value.
说明(Description)
如果原始图像的宽度或高度高于阈值,则会将其缩小。阈值用作最大宽度和最大高度。缩小后的图像将用作最大的可用大小,包括附加的文件post meta值。
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
5.3.0 | wp-admin/includes/image.php:273 | 1 | 0 |
笔记(Notes)
用法示例:
big_image_size_threshold 为WP2原创文章,链接:https://www.wp2.cn/hook/big_image_size_threshold/