wphooks.info - the_post_thumbnail_caption

the_post_thumbnail_caption

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

wp-includes/post-thumbnail-template.php:
252
253
254
255
256
257
258
259
260
261
262
263
 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global `$post`.
 */
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 ) );
}