On this page
apply_filters( 'the_post_thumbnail_caption', string $caption )
Filters the displayed post thumbnail caption.
Parameters
$captionstring-
Caption for the given attachment.
Source
File: wp-includes/post-thumbnail-template.php. View all references
echo apply_filters( 'the_post_thumbnail_caption', get_the_post_thumbnail_caption( $post ) );
Related
Used By
| Used By | Description |
|---|---|
| the_post_thumbnail_caption() wp-includes/post-thumbnail-template.php | Displays the post thumbnail caption. |
Changelog
| Version | Description |
|---|---|
| 4.6.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/the_post_thumbnail_caption