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
502           } else {
503                $arcresults = $cache[ $key ];
504           }
505           if ( $arcresults ) {
506                foreach ( $arcresults as $arcresult ) {
507                     if ( $arcresult->post_date != '0000-00-00 00:00:00' ) {
508                          $url  = get_permalink($arcresult);
509                          $arc_title = $arcresult->post_title;
510                          if ( $arc_title )
511                               $text = strip_tags(apply_filters('the_title', $arc_title));
512                          else
513                               $text = $arcresult->ID;
514                          echo get_archives_link($url, $text, $format, $before, $after);
515                     }
516                }
517           }
518      }
519 }
520
 
Line Code
660           ."FROM $wpdb->posts "
661           ."WHERE YEAR(post_date) = '$thisyear' "
662           ."AND MONTH(post_date) = '$thismonth' "
663           ."AND post_date < '".current_time('mysql')."' "
664           ."AND post_type = 'post' AND post_status = 'publish'"
665      );
666      if ( $ak_post_titles ) {
667           foreach ( $ak_post_titles as $ak_post_title ) {
668
669                     $post_title = apply_filters( "the_title", $ak_post_title->post_title );
670                     $post_title = str_replace('"', '&quot;', wptexturize( $post_title ));
671
672                     if ( empty($ak_titles_for_day['day_'.$ak_post_title->dom]) )
673                          $ak_titles_for_day['day_'.$ak_post_title->dom] = '';
674                     if ( empty($ak_titles_for_day["$ak_post_title->dom"]) ) // first one
675                          $ak_titles_for_day["$ak_post_title->dom"] = $post_title;
676                     else
677                          $ak_titles_for_day["$ak_post_title->dom"] .= $ak_title_separator . $post_title;
678           }