Summery Summery
Displays the post thumbnail caption.
Syntax Syntax
Parameters Parameters
- $post
-
(Optional) Post ID or WP_Post object. Default is global
$post
.Default value: null
Source Source
File: wp-includes/post-thumbnail-template.php
if ( ! $caption ) { $caption = ''; } return $caption; } /** * Displays the post thumbnail caption.
Advertisement
Changelog Changelog
Version | Description |
---|---|
4.6.0 | Introduced. |