rss_tag_pre WordPress Action Hook

The rss_tag_pre hook is a Wordpress hook that is called before the RSS feed is generated. This hook can be used to modify the RSS feed before it is generated.

do_action( 'rss_tag_pre', string $context ) #

Fires between the xml and rss tags in a feed.


Parameters

$context

(string)Type of feed. Possible values include 'rss2', 'rss2-comments', 'rdf', 'atom', and 'atom-comments'.


Top ↑

Source

File: wp-includes/feed-rss2.php

View on Trac


Top ↑

Changelog

Changelog
VersionDescription
4.0.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.