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 Array of attribute values for the image markup, keyed by attribute name. See wp_get_attachment_image().
    Required: Yes
  • (WP_Post) $attachment Image attachment post.
    Required: Yes
  • (string|int[]) $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
Defined at:
Codex:

Filters the list of attachment image attributes.





Source

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