wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



wp_get_attachment_link_attributes › Hooks de Filtros WordPress

Desde6.2.0
Obsoleton/a
› apply_filters( 'wp_get_attachment_link_attributes', array( 'href' => $url )
Parâmetros: (2)
  • () attributes An array of attributes for the link markup, keyed on the attribute name.
    Required: No
    Padrão: —
  • () id Post ID.
    Required: Yes
Definido em:
Codex:

Filters the list of attachment link attributes.





Fonte

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