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



attachment_link ›

Desde2.0.0
Obsoleton/a
apply_filters( 'attachment_link', $link, $post->ID )
Parâmetros: (2)
  • (string) $link The attachment's permalink.
    Required: Yes
  • (int) $post_id Attachment ID.
    Required: Yes
Definido em:
Codex:

Filters the permalink for an attachment.





Fonte

return apply_filters( 'attachment_link', $link, $post->ID );