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

Line Code
534                                    $parent = get_post( $find_main_page );
535
536                                    if ( is_null( $parent ) )
537                                         break;
538
539                                    $level++;
540                                    $find_main_page = (int) $parent->post_parent;
541
542                                    if ( !isset( $parent_name ) )
543                                         $parent_name = apply_filters( 'the_title', $parent->post_title, $parent->ID );
544                               }
545                          }
546                     }
547
548                     $pad = str_repeat( '— ', $level );
549                     echo "<td $attributes><strong>";
550
551                     if ( $format = get_post_format( $post->ID ) ) {
552                          $label = get_post_format_string( $format );