the_post_thumbnail_caption() - WordPress 函数参考中文文档

返回介绍

the_post_thumbnail_caption()

发布于 2017-09-11 字数 1381 浏览 875 评论 0

the_post_thumbnail_caption( int|WP_Post $post = null )

Displays the post thumbnail caption.


描述


参数

$post

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

Default value: null


源代码

File: wp-includes/post-thumbnail-template.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 ) );
}

更新日志

Version 描述
4.6.0 Introduced.

相关函数

Uses

  • wp-includes/post-thumbnail-template.php:
    get_the_post_thumbnail_caption()
  • wp-includes/post-thumbnail-template.php:
    the_post_thumbnail_caption
  • wp-includes/plugin.php:
    apply_filters()

User Contributed Notes

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

目前还没有任何评论,快来抢沙发吧!