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



wp_get_attachment_image › WordPress Filter Hooks

Seit5.6.0
Veraltetn/v
apply_filters( 'wp_get_attachment_image', $html, $attachment_id, $size, $icon, $attr )
Parameter: (5)
  • () html HTML img element or empty string on failure.
    Erforderlich: Ja
  • () attachment_id Image attachment ID.
    Erforderlich: Ja
  • () 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
  • () icon Whether the image should be treated as an icon.
    Erforderlich: Ja
  • () attr Array of attribute values for the image markup, keyed by attribute name. See wp_get_attachment_image().
    Erforderlich: Ja
Definiert in:
Codex:

Filters the HTML img element representing an image attachment.





Quellcode

return apply_filters( 'wp_get_attachment_image', $html, $attachment_id, $size, $icon, $attr );