Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: rss2_ns

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
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
31      /**
32       * Fires at the end of the RSS root to add namespaces.
33       *
34       * @since 2.0.0
35       */
36      do_action( 'rss2_ns' );
37      ?>
38 >
39
40 <channel>
41      <title><?php wp_title_rss(); ?></title>
42      <atom:link href="<?php self_link(); ?>" rel="self" type="application/rss+xml" />
43      <link><?php bloginfo_rss('url') ?></link>
44      <description><?php bloginfo_rss("description") ?></description>
45      <lastBuildDate><?php