rss_tag_pre action-hookWP 4.0.0

Fires between the xml and rss tags in a feed.

Usage

add_action( 'rss_tag_pre', 'wp_kama_rss_tag_pre_action' );

/**
 * Function for `rss_tag_pre` action-hook.
 * 
 * @param string $context Type of feed. Possible values include 'rss2', 'rss2-comments', 'rdf', 'atom', and 'atom-comments'.
 *
 * @return void
 */
function wp_kama_rss_tag_pre_action( $context ){

	// action...
}
$context(string)
Type of feed. Possible values include 'rss2', 'rss2-comments', 'rdf', 'atom', and 'atom-comments'.

Changelog

Since 4.0.0 Introduced.

Where the hook is called

In file: /wp-includes/feed-rss2.php
rss_tag_pre
wp-includes/feed-rss2.php 21
do_action( 'rss_tag_pre', 'rss2' );
wp-includes/feed-rdf.php 14
do_action( 'rss_tag_pre', 'rdf' );
wp-includes/feed-rss2-comments.php 13
do_action( 'rss_tag_pre', 'rss2-comments' );
wp-includes/feed-atom.php 14
do_action( 'rss_tag_pre', 'atom' );
wp-includes/feed-atom-comments.php 12
do_action( 'rss_tag_pre', 'atom-comments' );

Where the hook is used in WordPress

Usage not found.