wppaste
WordPress

do_action( 'rss_tag_pre', string $context )

Since
4.0.0
Fires between the xml and rss tags in a feed.

Compatibility

WordPress
since 4.0.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

$contextstring
Type of feed. Possible values include 'rss2', 'rss2-comments', 'rdf', 'atom', and 'atom-comments'.

Where this hook fires · 5

  • wp-includes/feed-atom-comments.php:12file scope
  • wp-includes/feed-atom.php:19file scope
  • wp-includes/feed-rdf.php:14file scope
  • wp-includes/feed-rss2-comments.php:13file scope
  • wp-includes/feed-rss2.php:21file scope

Source code

 * * @since 4.0.0 * * @param string $context Type of feed. Possible values include 'rss2', 'rss2-comments', *                        'rdf', 'atom', and 'atom-comments'. */do_action( 'rss_tag_pre', 'rss2' );?><rss version="2.0"	xmlns:content="http://purl.org/rss/1.0/modules/content/"	xmlns:wfw="http://wellformedweb.org/CommentAPI/"	xmlns:dc="http://purl.org/dc/elements/1.1/"	xmlns:atom="http://www.w3.org/2005/Atom"

Changelog

Introduced in 4.0.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.

About this page

Parsed data
Generated from the wordpress-develop 6.8.8 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.