wp_get_attachment_caption( int $post_id )
Retrieves the caption for an attachment.
Parameters
- $post_id
-
(Optional) Attachment ID. Default is the ID of the global
$post
.
Return
(string|false) Attachment caption on success, false on failure.
Source
File: wp-includes/post.php
Changelog
Version | Description |
---|---|
4.6.0 | Introduced. |