A WordPress-centric search engine for devs and theme authors



do_feed_{$feed} ›

Since4.4.0
Deprecatedn/a
do_action( "do_feed_{$feed}", $wp_query->is_comment_feed, $feed )
Parameters: (2)
  • (bool) $is_comment_feed Whether the feed is a comment feed.
    Required: Yes
  • (string) $feed The feed name.
    Required: Yes
Defined at:
Codex:

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'.





Source

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