wppaste
WordPress

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

Since
2.1.0, 4.4.0
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

Compatibility

WordPress
since 4.4.0
  • 6.7.7
  • 6.8.8
  • 6.9.7
  • 7.0.4
  • 7.1.0

Present in every tracked release (6.7.7 to 7.1.0).

Parameters

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

Where this hook fires · 1

  • wp-includes/functions.php:1641do_feed()

Source code

	 * @since 2.1.0	 * @since 4.4.0 The `$feed` parameter was added.	 *	 * @param bool   $is_comment_feed Whether the feed is a comment feed.	 * @param string $feed            The feed name.	 */	do_action( "do_feed_{$feed}", $wp_query->is_comment_feed, $feed );} /** * Loads the RDF RSS 0.91 Feed template. * * @since 2.1.0

Changelog

Introduced in 2.1.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

4.4.0
The $feed parameter was added.from the docblock
2.1.0
Introduced.from the docblock

About this page

Parsed data
Generated from the wordpress-develop 7.0.4 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.