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
查看更多 >
闪电侠

(工作日 10:00 - 18:30 为您服务)

2025-12-05 18:32:58

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: