
WordPress Cookies和PHP会话——你需要知道的一切
the_post_thumbnail_caption ( $post = null )
post_thumbnail_caption是一个WordPress函数,用于显示当前文章或指定文章的特色图像的标题。
显示文章缩略图的标题。
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 ) ); }