wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



wp_get_attachment_image_attributes › Filtr WordPress Hooks

Od6.8.2
Przestarzałyn/a
› apply_filters( 'wp_get_attachment_image_attributes', $attr, $attachment, $size )
Parametry: (3)
  • () attr Array of attribute values for the image markup, keyed by attribute name. See wp_get_attachment_image().
    Wymagane: Tak
  • () attachment Image attachment post, or null if no post is found.
    Wymagane: Tak
  • () size Requested image size. Can be any registered image size name, or an array of width and height values in pixels (in that order).
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters the list of attachment image attributes.





Źródło

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