apply_filters( ‘the_post_thumbnail_caption’, string $caption )

In this article

Filters the displayed post thumbnail caption.

Parameters

$captionstring
Caption for the given attachment.

Source

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

Changelog

VersionDescription
4.6.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.