Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: atom_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
18   xmlns:thr="http://purl.org/syndication/thread/1.0"
19   xml:lang="<?php bloginfo_rss( 'language' ); ?>"
20   xml:base="<?php bloginfo_rss('url') ?>/wp-atom.php"
21   <?php
22   /**
23    * Fires at end of the Atom feed root to add namespaces.
24    *
25    * @since 2.0.0
26    */
27   do_action( 'atom_ns' );
28   ?>
29  >
30      <title type="text"><?php wp_title_rss(); ?></title>
31      <subtitle type="text"><?php bloginfo_rss("description") ?></subtitle>
32
33      <updated><?php
34           $date = get_lastpostmodified( 'GMT' );
35           echo $date ? mysql2date( 'Y-m-d\TH:i:s\Z', $date ) : date( 'Y-m-d\TH:i:s\Z' );
36      ?></updated>