Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: the_title

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

This hook occurs 2 times in this file.

Line Code
512                $indent = str_repeat("\t", $depth);
513           extract($args, EXTR_SKIP);
514           $css_class = 'page_item page-item-'.$page->ID;
515           $_current_page = get_page( $current_page );
516           if ( $page->ID == $current_page )
517                $css_class .= ' current_page_item ';
518           elseif ( $_current_page && $page->ID == $_current_page->post_parent )
519                $css_class .= ' current_page_parent';
520
521           $output .= $indent . '<li class="' . $css_class . '"><a href="' . get_page_link($page->ID) . '" title="' . attribute_escape(apply_filters('the_title', $page->post_title)) . '">' . apply_filters('the_title', $page->post_title) . '</a>';
522
523           if ( !empty($show_date) ) {
524                if ( 'modified' == $show_date )
525                     $time = $page->post_modified;
526                else
527                     $time = $page->post_date;
528
529                $output .= " " . mysql2date($date_format, $time);
530           }