wp_get_attachment_url
wp_get_attachment_url ( $attachment_id = 0 )
Parameters:- (int) attachment_id Optional. Attachment post ID. Defaults to global $post.
Returns:- (string|false) Attachment URL, otherwise false.
Defined at: - Introduced in WordPress: 2.1.0
- Deprecated in WordPress: —
Description
Retrieves the URL for an attachment.