do_feed_rss2( bool $for_comments )

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

Description

See also

Parameters

$for_commentsboolrequired
True for the comment feed, false for normal feed.

Source

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

Changelog

VersionDescription
2.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.