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



wp_get_attachment_url ›

Desde2.1.0
Obsoleton/a
apply_filters( 'wp_get_attachment_url', $url, $post->ID )
Parâmetros: (2)
  • (string) $url URL for the given attachment.
    Required: Yes
  • (int) $attachment_id Attachment post ID.
    Required: Yes
Definido em:
Codex:

Filters the attachment URL.





Fonte

$url = apply_filters( 'wp_get_attachment_url', $url, $post->ID );