A WordPress-centric search engine for devs and theme authors



wp_get_attachment_image_attributes ›

Since2.8.0
Deprecatedn/a
apply_filters( 'wp_get_attachment_image_attributes', $attr, $attachment, $size )
Parameters: (3)
  • (array) $attr Attributes for the image markup.
    Required: Yes
  • (WP_Post) $attachment Image attachment post.
    Required: Yes
  • (string|array) $size Requested size. Image size or array of width and height values (in that order). Default 'thumbnail'.
    Required: Yes
Defined at:
Codex:

Filters the list of attachment image attributes.





Source

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