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



wp_get_attachment_link_attributes › Les Filtres WordPress

Depuis6.2.0
Dépréciéen/a
› apply_filters( 'wp_get_attachment_link_attributes', array( 'href' => $url )
Paramètres: (2)
  • () attributes An array of attributes for the link markup, keyed on the attribute name.
    Requis: Non
    Défaut: —
  • () id Post ID.
    Requis: Oui
Défini(e) dans:
Codex:

Filters the list of attachment link attributes.





Source

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