the_post_thumbnail_caption WordPress Filter Hook
The the_post_thumbnail_caption hook allows you to add a caption to your post thumbnail. This can be useful for adding a short description of the image or for providing attribution.
apply_filters( 'the_post_thumbnail_caption', string $caption ) #
Filters the displayed post thumbnail caption.
Parameters
- $caption
(string)Caption for the given attachment.
Source
Changelog
Version | Description |
---|---|
4.6.0 | Introduced. |