WordPress at a glance
action is not described

do_feed_(feed) action-hook . WP 2.1.0

Fires once the given feed is loaded.

The dynamic portion of the hook name, $feed, refers to the feed template name. Possible values include: 'rdf', 'rss', 'rss2', and 'atom'.

Usage

add_action( 'do_feed_(feed)', 'action_function_name_428', 10, 2 );
function action_function_name_428( $is_comment_feed, $feed ){
	// action...
}
$is_comment_feed(true/false)
Whether the feed is a comment feed.
$feed(string)
The feed name.

Notes

  • Since 4.4.0 The $feed parameter was added.

Where the hook is called

do_feed()
do_feed_(feed)
wp-includes/functions.php 1249
do_action( "do_feed_{$feed}", $wp_query->is_comment_feed, $feed );

Where the hook is used (in WP core)

wp-includes/default-filters.php 321
add_action( 'do_feed_rdf', 'do_feed_rdf', 10, 1 );
wp-includes/default-filters.php 322
add_action( 'do_feed_rss', 'do_feed_rss', 10, 1 );
wp-includes/default-filters.php 323
add_action( 'do_feed_rss2', 'do_feed_rss2', 10, 1 );
wp-includes/default-filters.php 324
add_action( 'do_feed_atom', 'do_feed_atom', 10, 1 );