get_the_title_rss

函式
get_the_title_rss ( No parameters )
返回值
  • (string) Current post title.
定義位置
相關方法
get_the_titlethe_title_rssget_wp_title_rssget_the_termsget_the_time
引入
2.0.0
棄用
-

get_the_title_rss: 這個函式以適合RSS提要的格式返回當前文章的標題: 該函式返回的標題沒有格式化,不能安全地顯示。建議只對RSS feeds使用此函式。

檢索feed的當前文章標題。

function get_the_title_rss() {
	$title = get_the_title();

	/**
	 * Filters the post title for use in a feed.
	 *
	 * @since 1.2.0
	 *
	 * @param string $title The current post title.
	 */
	return apply_filters( 'the_title_rss', $title );
}

常見問題

FAQs
檢視更多 >