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:

Description

Retrieves the URL for an attachment.

Related Functions

wp_get_attachment_image_url, wp_get_attachment_link, wp_get_attachment_thumb_url, wp_edit_attachments_query, wp_get_attachment_thumb_file

Top Google Results

User discussions

wpseek mobile