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
431
432      if ( !$post )
433           return;
434
435      $title = $post->post_title;
436
437      if ( empty($post->post_title) )
438           $title = __('Previous Post');
439
440      $title = apply_filters('the_title', $title, $post);
441      $string = '<a href="'.get_permalink($post->ID).'">';
442      $link = str_replace('%title', $title, $link);
443      $link = $pre . $string . $link . '</a>';
444
445      $format = str_replace('%link', $link, $format);
446
447      echo $format;
448 }
449
 
Line Code
452
453      if ( !$post )
454           return;
455
456      $title = $post->post_title;
457
458      if ( empty($post->post_title) )
459           $title = __('Next Post');
460
461      $title = apply_filters('the_title', $title, $post);
462      $string = '<a href="'.get_permalink($post->ID).'">';
463      $link = str_replace('%title', $title, $link);
464      $link = $string . $link . '</a>';
465      $format = str_replace('%link', $link, $format);
466
467      echo $format;
468 }
469
470 function get_pagenum_link($pagenum = 1) {