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
8 header('Content-type: application/atom+xml; charset=' . get_settings('blog_charset'), true);
9 $more = 1;
10
11 ?>
12 <?php echo '<?xml version="1.0" encoding="'.get_settings('blog_charset').'"?'.'>'; ?>
13 <feed version="0.3"
14   xmlns="http://purl.org/atom/ns#"
15   xmlns:dc="http://purl.org/dc/elements/1.1/"
16   xml:lang="<?php echo get_option('rss_language'); ?>"
17   <?php do_action('atom_ns'); ?>
18   >
19      <title><?php bloginfo_rss('name') ?></title>
20      <link rel="alternate" type="text/html" href="<?php bloginfo_rss('home') ?>" />
21      <tagline><?php bloginfo_rss("description") ?></tagline>
22      <modified><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT'), false); ?></modified>
23      <copyright>Copyright <?php echo mysql2date('Y', get_lastpostdate('blog'), 0); ?></copyright>
24      <generator url="http://wordpress.org/" version="<?php bloginfo_rss('version'); ?>">WordPress</generator>
25      <?php do_action('atom_head'); ?>
26      <?php $items_count = 0; if ($posts) { foreach ($posts as $post) { start_wp(); ?>