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
392      <wp:tag><wp:term_id><?php echo intval( $t->term_id ); ?></wp:term_id><wp:tag_slug><?php echo wxr_cdata( $t->slug ); ?></wp:tag_slug><?php wxr_tag_name( $t ); ?><?php wxr_tag_description( $t ); ?></wp:tag>
393 <?php endforeach; ?>
394 <?php foreach ( $terms as $t ) : ?>
395      <wp:term><wp:term_id><?php echo wxr_cdata( $t->term_id ); ?></wp:term_id><wp:term_taxonomy><?php echo wxr_cdata( $t->taxonomy ); ?></wp:term_taxonomy><wp:term_slug><?php echo wxr_cdata( $t->slug ); ?></wp:term_slug><wp:term_parent><?php echo wxr_cdata( $t->parent ? $terms[$t->parent]->slug : '' ); ?></wp:term_parent><?php wxr_term_name( $t ); ?><?php wxr_term_description( $t ); ?></wp:term>
396 <?php endforeach; ?>
397 <?php if ( 'all' == $args['content'] ) wxr_nav_menu_terms(); ?>
398
399      <?php
400      /** This action is documented in wp-includes/feed-rss2.php */
401      do_action( 'rss2_head' );
402      ?>
403
404 <?php if ( $post_ids ) {
405      /**
406       * @global WP_Query $wp_query
407       */
408      global $wp_query;
409
410      // Fake being in the loop.