Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: rss2_head

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
151      <title><?php bloginfo_rss('name'); ?></title>
152      <link><?php bloginfo_rss('url') ?></link>
153      <description><?php bloginfo_rss("description") ?></description>
154      <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), false); ?></pubDate>
155      <generator>http://wordpress.org/?v=<?php bloginfo_rss('version'); ?></generator>
156      <language><?php echo get_option('rss_language'); ?></language>
157 <?php if ( $cats ) : foreach ( $cats as $c ) : ?>
158      <wp:category><wp:category_nicename><?php echo $c->category_nicename; ?></wp:category_nicename><wp:category_parent><?php echo $c->category_parent ? $cats[$c->category_parent]->cat_name : ''; ?></wp:category_parent><wp:posts_private><?php echo $c->posts_private ? '1' : '0'; ?></wp:posts_private><wp:links_private><?php echo $c->links_private ? '1' : '0'; ?></wp:links_private><?php wxr_cat_name($c); ?><?php wxr_category_description($c); ?></wp:category>
159 <?php endforeach; endif; ?>
160      <?php do_action('rss2_head'); ?>
161      <?php if ($posts) { foreach ($posts as $post) { start_wp(); ?>
162 <item>
163 <title><?php the_title_rss() ?></title>
164 <link><?php permalink_single_rss() ?></link>
165 <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_post_time('Y-m-d H:i:s', true), false); ?></pubDate>
166 <dc:creator><?php the_author() ?></dc:creator>
167 <?php the_category_rss() ?>
168
169 <guid isPermaLink="false"><?php the_guid(); ?></guid>