wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_get_attachment_image_attributes › WordPress过滤钩子

Since6.8.2
已弃用n/a
› apply_filters( 'wp_get_attachment_image_attributes', $attr, $attachment, $size )
参数: (3)
  • () attr Array of attribute values for the image markup, keyed by attribute name. See wp_get_attachment_image().
    Required: Yes
  • () attachment Image attachment post, or null if no post is found.
    Required: Yes
  • () size Requested image size. Can be any registered image size name, or an array of width and height values in pixels (in that order).
    Required: Yes
定义在:
文档:

Filters the list of attachment image attributes.





源码

$attr = apply_filters( 'wp_get_attachment_image_attributes', $attr, $attachment, $size );