do_feed_rss2()
最后更新于:2021-11-26 03:57:48
do_feed_rss2( bool$for_comments)Load either the RSS2 comment feed or the RSS2 posts feed.
参数
- $for_comments
-
(bool) (Required) True for the comment feed, false for normal feed.
源文件
文件: gc-includes/functions.php
function do_feed_rss2( $for_comments ) {
if ( $for_comments ) {
load_template( ABSPATH . GCINC . '/feed-rss2-comments.php' );
} else {
load_template( ABSPATH . GCINC . '/feed-rss2.php' );
}
}