Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



wp_get_attachment_image_attributes ›

Seit2.8.0
Veraltetn/v
apply_filters( 'wp_get_attachment_image_attributes', $attr, $attachment, $size )
Parameter: (3)
  • (array) $attr Array of attribute values for the image markup, keyed by attribute name. See wp_get_attachment_image().
    Erforderlich: Ja
  • (WP_Post) $attachment Image attachment post.
    Erforderlich: Ja
  • (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).
    Erforderlich: Ja
Definiert in:
Codex:

Filters the list of attachment image attributes.





Quellcode

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