Core Function
View Source on Trac ↗ get_the_post_thumbnail_caption()
get_the_post_thumbnail_caption( mixed $post = null ) Returns the post thumbnail caption.
Parameters 1 required
| Name / Type | Description |
|---|---|
| (int | | WP_Post | null) $post Optional. Post ID or WP_Post object. Default is global `$post`. Required |
Return Value
(string)
Post thumbnail caption.
Function Information
Since Version
4.6.0
Source File
wp-includes/post-thumbnail-template.php
Advertisement