do_feed_{$feed} WordPress Action Hook

The do_feed_{$feed} hook is used to customize the output of a WordPress feed. This hook is called for each feed type (rss, rss2, atom, etc.) and allows you to modify the default output for that feed type.

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

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

Top ↑

Parameters

$is_comment_feed

(bool)Whether the feed is a comment feed.

$feed

(string)The feed name.


Top ↑

Source

File: wp-includes/functions.php

View on Trac



Top ↑

Changelog

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

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More