Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: rss_tag_pre

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
12
13 /**
14  * Fires between the xml and rss tags in a feed.
15  *
16  * @since 4.0.0
17  *
18  * @param string $context Type of feed. Possible values include 'rss2', 'rss2-comments',
19  *                        'rdf', 'atom', and 'atom-comments'.
20  */
21 do_action( 'rss_tag_pre', 'rss2' );
22 ?>
23 <rss version="2.0"
24      xmlns:content="http://purl.org/rss/1.0/modules/content/"
25      xmlns:wfw="http://wellformedweb.org/CommentAPI/"
26      xmlns:dc="http://purl.org/dc/elements/1.1/"
27      xmlns:atom="http://www.w3.org/2005/Atom"
28      xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
29      xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
30      <?php