Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: rss_update_frequency

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
24                printf( ent2ncr( __( 'Comments for %1$s searching on %2$s' ) ), get_bloginfo_rss( 'name' ), get_search_query() );
25           else
26                printf( ent2ncr( __( 'Comments for %s' ) ), get_bloginfo_rss( 'name' ) . get_wp_title_rss() );
27      ?></title>
28      <atom:link href="<?php self_link(); ?>" rel="self" type="application/rss+xml" />
29      <link><?php (is_single()) ? the_permalink_rss() : bloginfo_rss("url") ?></link>
30      <description><?php bloginfo_rss("description") ?></description>
31      <lastBuildDate><?php echo mysql2date('r', get_lastcommentmodified('GMT')); ?></lastBuildDate>
32      <sy:updatePeriod><?php echo apply_filters( 'rss_update_period', 'hourly' ); ?></sy:updatePeriod>
33      <sy:updateFrequency><?php echo apply_filters( 'rss_update_frequency', '1' ); ?></sy:updateFrequency>
34      <?php do_action('commentsrss2_head'); ?>
35 <?php
36 if ( have_comments() ) : while ( have_comments() ) : the_comment();
37      $comment_post = $GLOBALS['post'] = get_post( $comment->comment_post_ID );
38 ?>
39      <item>
40           <title><?php
41                if ( !is_singular() ) {
42                     $title = get_the_title($comment_post->ID);