wp-includes/post-thumbnail-template.php:320Displays the post thumbnail caption.
$postint|WP_PostoptionalnullOne hook fires while the_post_thumbnail_caption() runs, in this order:
Filters the displayed post thumbnail caption.
function the_post_thumbnail_caption( $post = null ) { /** * Filters the displayed post thumbnail caption. * * @since 4.6.0 * * @param string $caption Caption for the given attachment. */ echo apply_filters( 'the_post_thumbnail_caption', get_the_post_thumbnail_caption( $post ) );}Introduced in 4.6.0. One change between 6.7.7 and 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
$post retyped from int|WP_Post to int|WP_Post|null.verified against sourcesrc/wp-includes/post-thumbnail-template.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.