do_feed_rss2() – Load either the RSS2 comment feed or the RSS2 posts feed.

You appear to be a bot. Output may be restricted

Description

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

Usage

do_feed_rss2( $for_comments );

Parameters

$for_comments
( bool ) required – True for the comment feed, false for normal feed.

Returns

void

Source

File name: wordpress/wp-includes/functions.php
Lines:

1 to 7 of 7
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' );
  }
}
 

 View on GitHub View on Trac