WordPress at a glance
function is not described

do_feed_rss2() WP 2.1.0

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

  • See: load_template()

No Hooks.

Return

Nothing (null).

Usage

do_feed_rss2( $for_comments );
$for_comments(true/false) (required)
True for the comment feed, false for normal feed.

Code of do feed rss2: wp-includes/functions.php VER 5.0.3

<?php
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' );
}