intermediate_image_sizes
apply_filters( ‘intermediate_image_sizes’, string[] $default_sizes )
过滤器::过滤中间图像大小的列表。
Filter Hook: Filters the list of intermediate image sizes.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$default_sizes | (string[]) | 中间图像大小名称的数组。默认值为“缩略图”、“中”、“中大”、“大”。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
2.5.0 | wp-includes/media.php:877 | 1 | 0 |
intermediate_image_sizes 为WP2原创文章,链接:https://www.wp2.cn/hook/intermediate_image_sizes/