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_atomdo_feed_rdfdo_feed_rssdo_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:1634do_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.0Changelog
Introduced in 2.1.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
4.4.0
The
$feed parameter was added.from the docblock2.1.0
Introduced.from the docblock
About this page
- Parsed data
- Generated from the wordpress-develop 6.7.7 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.