get_comment_author_rss

函数
get_comment_author_rss ( No parameters )
返回值
  • (string) Comment Author.
定义位置
相关方法
get_comment_author_urlget_comment_authorcomment_author_rssget_comment_author_ipget_comment_author_link
引入
2.0.0
弃用
-

get_comment_author_rss: 这个函数返回评论作者的RSS提要的URL。它需要一个参数,即$comment_ID,这是你想检索作者的RSS feed的评论的ID。

检索当前的评论作者,以便在feeds中使用。

function get_comment_author_rss() {
	/**
	 * Filters the current comment author for use in a feed.
	 *
	 * @since 1.5.0
	 *
	 * @see get_comment_author()
	 *
	 * @param string $comment_author The current comment author.
	 */
	return apply_filters( 'comment_author_rss', get_comment_author() );
}

常见问题

FAQs
查看更多 >