A WordPress-centric search engine for devs and theme authors



wp_get_attachment_url ›

Since2.1.0
Deprecatedn/a
apply_filters( 'wp_get_attachment_url', $url, $post->ID )
Parameters: (2)
  • (string) $url URL for the given attachment.
    Required: Yes
  • (int) $attachment_id Attachment post ID.
    Required: Yes
Defined at:
Codex:

Filters the attachment URL.





Source

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