Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: commentsrss2_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
45      <sy:updatePeriod><?php echo apply_filters( 'rss_update_period', 'hourly' ); ?></sy:updatePeriod>
46      <?php /** This filter is documented in wp-includes/feed-rss2.php */ ?>
47      <sy:updateFrequency><?php echo apply_filters( 'rss_update_frequency', '1' ); ?></sy:updateFrequency>
48      <?php
49      /**
50       * Fires at the end of the RSS2 comment feed header.
51       *
52       * @since 2.3.0
53       */
54      do_action( 'commentsrss2_head' );
55
56      if ( have_comments() ) : while ( have_comments() ) : the_comment();
57           $comment_post = $GLOBALS['post'] = get_post( $comment->comment_post_ID );
58      ?>
59      <item>
60           <title><?php
61                if ( !is_singular() ) {
62                     $title = get_the_title($comment_post->ID);
63                     /** This filter is documented in wp-includes/feed.php */