image_get_intermediate_size
apply_filters( ‘image_get_intermediate_size’, array $data , int $post_id , string|array $size )
过滤器::过滤图像的输出获取中间大小()
Filter Hook: Filters the output of image_get_intermediate_size()
说明(Description)
另见函数 image_get_intermediate_size()
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$data | (array) | 成功时文件相对路径、宽度和高度的数组。也可以包括文件绝对路径和URL。 |
$post_id | (int) | 图像附件的post-id |
$size | (string | array) | 初始要求的高度和宽度尺寸的注册图像大小或平面数组(按该顺序)。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
4.4.0 | wp-includes/media.php:851 | 1 | 0 |
image_get_intermediate_size 为WP2原创文章,链接:https://www.wp2.cn/hook/image_get_intermediate_size-2/