wp_get_attachment_caption


wp_get_attachment_caption ( $post_id = 0 )

Parameters:
  • (int) post_id Optional. Attachment ID. Default is the ID of the global `$post`.
Returns:
  • (string|false) Attachment caption on success, false on failure.
Defined at:

Description

Retrieves the caption for an attachment.

Related Functions

wp_get_attachment_link, get_attachment_icon, wp_get_attachment_image, wp_get_attachment_url, get_attachment_link

Top Google Results

User discussions

wpseek mobile