the_post_thumbnail_caption

Advertisement

Summery Summery

Displays the post thumbnail caption.

Syntax Syntax

the_post_thumbnail_caption( int|WP_Post $post = null )

Parameters Parameters

$post

(int|WP_Post) (Optional) Post ID or WP_Post object. Default is global $post.

Default value: null

Source Source

File: wp-includes/post-thumbnail-template.php

	if ( ! $caption ) {
		$caption = '';
	}

	return $caption;
}

/**
 * Displays the post thumbnail caption.

Advertisement

Changelog Changelog

Changelog
Version Description
4.6.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.