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的当前文章标题。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
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 );
}
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 ); }
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
查看更多 >