do_feed_atom

The timeline below displays how wordpress function do_feed_atom has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.1

/**
 * Loads either Atom comment feed or Atom posts feed.
 *
 * @since 2.1.0
 *
 * @see load_template()
 *
 * @param bool $for_comments True for the comment feed, false for normal feed.
 */
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');
    }
}

WordPress Version: 4.0

/**
 * Load either Atom comment feed or Atom posts feed.
 *
 * @since 2.1.0
 *
 * @see load_template()
 *
 * @param bool $for_comments True for the comment feed, false for normal feed.
 */
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');
    }
}

WordPress Version: 3.7

/**
 * Load either Atom comment feed or Atom posts feed.
 *
 * @since 2.1.0
 *
 * @param bool $for_comments True for the comment feed, false for normal feed.
 */
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');
    }
}