do_feed_atom()WP 2.1.0

Loads either Atom comment feed or Atom posts feed.

No Hooks.

Return

null. Nothing (null).

Usage

do_feed_atom( $for_comments );
$for_comments(true|false) (required)
True for the comment feed, false for normal feed.

Notes

Changelog

Since 2.1.0 Introduced.

do_feed_atom() code WP 6.5.2

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