do_feed_atom() WordPress Function

The do_feed_atom() function is responsible for generating the Atom feed for a WordPress site. It is called by the wp_feed_options() function, which is responsible for managing the various options that are available for feeds. The do_feed_atom() function can be overridden by a plugin or a theme.

do_feed_atom( bool $for_comments ) #

Load either Atom comment feed or Atom posts feed.


Description

Top ↑

See also


Top ↑

Parameters

$for_comments

(bool)(Required)True for the comment feed, false for normal feed.


Top ↑

Source

File: wp-includes/functions.php

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


Top ↑

Changelog

Changelog
VersionDescription
2.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More