wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_get_attachment_link_attributes › WordPress Filter Hooks

Da6.2.0
Deprecaton/a
› apply_filters( 'wp_get_attachment_link_attributes', array( 'href' => $url )
Parametri: (2)
  • () attributes An array of attributes for the link markup, keyed on the attribute name.
    Richiesto: No
    Default: —
  • () id Post ID.
    Richiesto: Sì
Definito a:
Codex:

Filters the list of attachment link attributes.





Sorgenti

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