wpseek.com
A WordPress-centric search engine for devs and theme authors



the_post_thumbnail_caption › WordPress Filter Hooks

Since4.6.0
Deprecatedn/a
apply_filters( 'the_post_thumbnail_caption', get_the_post_thumbnail_caption( $post )
Parameters:
  • (string) $caption Caption for the given attachment.
    Required: Yes
Defined at:
Codex:

Filters the displayed post thumbnail caption.





Source

echo apply_filters( 'the_post_thumbnail_caption', get_the_post_thumbnail_caption( $post ) );