do_action( “do_feed_{$feed}”, bool $is_comment_feed, string $feed )

In this article

Fires once the given feed is loaded.

Description

The dynamic portion of the hook name, $feed, refers to the feed template name.

Possible hook names include:

  • do_feed_atom
  • do_feed_rdf
  • do_feed_rss
  • do_feed_rss2

Parameters

$is_comment_feedbool
Whether the feed is a comment feed.
$feedstring
The feed name.

Source

do_action( "do_feed_{$feed}", $wp_query->is_comment_feed, $feed );

Changelog

VersionDescription
4.4.0The $feed parameter was added.
2.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.