wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



wp_get_attachment_link_attributes › WordPress Filter Hooks

Seit6.2.0
Veraltetn/v
apply_filters( 'wp_get_attachment_link_attributes', array( 'href' => $url )
Parameter: (2)
  • () attributes An array of attributes for the link markup, keyed on the attribute name.
    Erforderlich: Nein
    Standard:
  • () id Post ID.
    Erforderlich: Ja
Definiert in:
Codex:

Filters the list of attachment link attributes.





Quellcode

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