do_feed_rss2() WordPress Function
The do_feed_rss2() function is responsible for generating the RSS2 feed for a WordPress site. This function is called by the WordPress feed templates.
do_feed_rss2( bool $for_comments ) #
Load either the RSS2 comment feed or the RSS2 posts feed.
Description
See also
Parameters
- $for_comments
(bool)(Required)True for the comment feed, false for normal feed.
Source
File: wp-includes/functions.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' ); } }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |