Wordpress 钩子:wp_get_attachment_image_attributes
文章目录
过滤附件图像属性列表。
原型
apply_filters( 'wp_get_attachment_image_attributes', array $attr, WP_Post $attachment, string|array $size )
参数
$attr
(array)
图像标记的属性。
$attachment
(WP_Post)
图片附件。
$size
(string|array)
要求的大小。图像大小或宽度和高度值数组(按此顺序)。默认’缩略图’。
源文件
路径:wp-includes/media.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/wp_get_attachment_image_attributes/
文章作者 iBllex
上次更新 2019-02-15