wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



wp_get_attachment_image › Les Filtres WordPress

Depuis5.6.0
Dépréciéen/a
› apply_filters( 'wp_get_attachment_image', $html, $attachment_id, $size, $icon, $attr )
Paramètres: (5)
  • () html HTML img element or empty string on failure.
    Requis: Oui
  • () attachment_id Image attachment ID.
    Requis: Oui
  • () size Requested image size. Can be any registered image size name, or an array of width and height values in pixels (in that order).
    Requis: Oui
  • () icon Whether the image should be treated as an icon.
    Requis: Oui
  • () attr Array of attribute values for the image markup, keyed by attribute name. See wp_get_attachment_image().
    Requis: Oui
Défini(e) dans:
Codex:

Filters the HTML img element representing an image attachment.





Source

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