WordPress at a glance

the_post_thumbnail_caption() WP 1.0

Displays the post thumbnail caption.

✈ 1 time = 0.001038s = very slow | 50000 times = 1.91s = fast PHP 7.0.8, WP 4.6
Hooks from function:
Return

Nothing (null).

Usage

the_post_thumbnail_caption( $post );
$post(int/WP_Post)
Post ID or WP_Post object.
Default: global $post

Code of the_post_thumbnail_caption: wp-includes/post-thumbnail-template.php VER 4.9.8

<?php
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 ) );
}

Related Functions

From tag: Thumbnail (images)

More from category: Thumbnails

No comments
    Hello, !     Log In . Register