do_feed_atom
Fires once the given feed is loaded.
This is one of the variants of the dynamic hook do_feed_(feed)
Usage
add_action( 'do_feed_atom', 'wp_kama_do_feed_atom_action', 10, 2 ); /** * Function for `do_feed_atom` action-hook. * * @param bool $is_comment_feed Whether the feed is a comment feed. * @param string $feed The feed name. * * @return void */ function wp_kama_do_feed_atom_action( $is_comment_feed, $feed ){ // action... }
- $is_comment_feed(true|false)
- Whether the feed is a comment feed.
- $feed(string)
- The feed name.
Changelog
Since 2.1.0 | Introduced. |
Since 4.4.0 | The $feed parameter was added. |
Where the hook is called
wp-includes/functions.php 1634
do_action( "do_feed_{$feed}", $wp_query->is_comment_feed, $feed );
Where the hook is used in WordPress
wp-includes/default-filters.php 400
add_action( 'do_feed_atom', 'do_feed_atom', 10, 1 );