wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_get_attachment_image › WordPress Filter Hooks

Da5.6.0
Deprecaton/a
› apply_filters( 'wp_get_attachment_image', $html, $attachment_id, $size, $icon, $attr )
Parametri: (5)
  • () html HTML img element or empty string on failure.
    Richiesto: Sì
  • () attachment_id Image attachment ID.
    Richiesto: Sì
  • () size Requested image size. Can be any registered image size name, or an array of width and height values in pixels (in that order).
    Richiesto: Sì
  • () icon Whether the image should be treated as an icon.
    Richiesto: Sì
  • () attr Array of attribute values for the image markup, keyed by attribute name. See wp_get_attachment_image().
    Richiesto: Sì
Definito a:
Codex:

Filters the HTML img element representing an image attachment.





Sorgenti

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