wp_get_attachment_url( int $post_id )

Retrieve the URL for an attachment.

24 related functions found for: wp_get_attachment_url

Top ↑

Related terms found for this post

wp-parser-related-wordsattach, attachment, attachments, get, locat, location, post-php, post-typ, post-type, url, wp-get, wp-includes
wp-parser-packagePost, WordPress

Top ↑

Terms Used Terms Used

Terms used in the related posts query

  • attach
  • attachment
  • attachments
  • get
  • locat
  • location
  • Post
  • post-php
  • post-typ
  • post-type
  • url
  • wp-get
  • wp-includes
  • wp-includes/post.php
  • post

Top ↑

Description Description

Top ↑

Parameters Parameters


(int) (Optional) Attachment ID. Default 0.

Top ↑

Return Return

(string|false) Attachment URL, otherwise false.

Top ↑

Source Source

File: wp-includes/post.php


Top ↑

Changelog Changelog

Version Description
2.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.