do_feed_atom()
Loads either Atom comment feed or Atom posts feed.
No Hooks.
Returns
null. Nothing (null).
Usage
do_feed_atom( $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_atom() do feed atom code WP 6.9.1
function do_feed_atom( $for_comments ) {
if ( $for_comments ) {
load_template( ABSPATH . WPINC . '/feed-atom-comments.php' );
} else {
load_template( ABSPATH . WPINC . '/feed-atom.php' );
}
}