WordPress开发者和主题制作者的搜索引擎



do_feed_rss2 ›

Since2.1.0
已弃用n/a
do_feed_rss2 ( $for_comments )
参数:
  • (bool) $for_comments True for the comment feed, false for normal feed.
    Required: Yes
查看:
定义在:
文档:

Load either the RSS2 comment feed or the RSS2 posts feed.



源码

function do_feed_rss2( $for_comments ) {
	if ( $for_comments ) {
		load_template( ABSPATH . WPINC . '/feed-rss2-comments.php' );
	} else {
		load_template( ABSPATH . WPINC . '/feed-rss2.php' );
	}
}