wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



wp_get_attachment_image_attributes › Hooks de Filtros WordPress

Desde6.8.2
Obsoleton/a
› apply_filters( 'wp_get_attachment_image_attributes', $attr, $attachment, $size )
Parâmetros: (3)
  • () attr Array of attribute values for the image markup, keyed by attribute name. See wp_get_attachment_image().
    Required: Yes
  • () attachment Image attachment post, or null if no post is found.
    Required: Yes
  • () 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
Definido em:
Codex:

Filters the list of attachment image attributes.





Fonte

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