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



wp_get_attachment_link_attributes › Filtr WordPress Hooks

Od6.2.0
Przestarzałyn/a
› apply_filters( 'wp_get_attachment_link_attributes', array( 'href' => $url )
Parametry: (2)
  • () attributes An array of attributes for the link markup, keyed on the attribute name.
    Wymagane: Nie
    Domyślny: —
  • () id Post ID.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters the list of attachment link attributes.





Źródło

$attributes = apply_filters( 'wp_get_attachment_link_attributes', array( 'href' => $url ), $_post->ID );