Uses
Uses | Description |
---|---|
wp-includes/template.php: load_template() | Require the template file with WordPress environment. |
Load either the RSS2 comment feed or the RSS2 posts feed.
(bool) (Required) True for the comment feed, false for normal feed.
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' ); } }
Version | Description |
---|---|
2.1.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/do_feed_rss2