do_feed_rss2()
Loads either the RSS2 comment feed or the RSS2 posts feed.
No Hooks.
Return
null
. Nothing (null).
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. |
do_feed_rss2() do feed rss2 code WP 6.5.2
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' ); } }