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.

No Hooks.

Return

````. Null. Nothing.

Usage

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

Notes

  • See: load_template()

Changelog

Since 2.1.0 Introduced.

Code of do_feed_rss2() WP 5.7

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