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
1013           } else {
1014                $arcresults = $cache[ $key ];
1015           }
1016           if ( $arcresults ) {
1017                foreach ( (array) $arcresults as $arcresult ) {
1018                     if ( $arcresult->post_date != '0000-00-00 00:00:00' ) {
1019                          $url  = get_permalink($arcresult);
1020                          $arc_title = $arcresult->post_title;
1021                          if ( $arc_title )
1022                               $text = strip_tags(apply_filters('the_title', $arc_title));
1023                          else
1024                               $text = $arcresult->ID;
1025                          $output .= get_archives_link($url, $text, $format, $before, $after);
1026                     }
1027                }
1028           }
1029      }
1030      if ( $echo )
1031           echo $output;
 
Line Code
1201           ."FROM $wpdb->posts "
1202           ."WHERE YEAR(post_date) = '$thisyear' "
1203           ."AND MONTH(post_date) = '$thismonth' "
1204           ."AND post_date < '".current_time('mysql')."' "
1205           ."AND post_type = 'post' AND post_status = 'publish'"
1206      );
1207      if ( $ak_post_titles ) {
1208           foreach ( (array) $ak_post_titles as $ak_post_title ) {
1209
1210                     $post_title = esc_attr( apply_filters( 'the_title', $ak_post_title->post_title, $ak_post_title->ID ) );
1211
1212                     if ( empty($ak_titles_for_day['day_'.$ak_post_title->dom]) )
1213                          $ak_titles_for_day['day_'.$ak_post_title->dom] = '';
1214                     if ( empty($ak_titles_for_day["$ak_post_title->dom"]) ) // first one
1215                          $ak_titles_for_day["$ak_post_title->dom"] = $post_title;
1216                     else
1217                          $ak_titles_for_day["$ak_post_title->dom"] .= $ak_title_separator . $post_title;
1218           }
1219      }