Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: wp_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
250      if ( !empty($title) )
251           $prefix = " $sep ";
252
253       // Determines position of the separator
254      if ( 'right' == $seplocation )
255           $title = $title . $prefix;
256      else
257           $title = $prefix . $title;
258
259      $title = apply_filters('wp_title', $title, $sep);
260
261      // Send it out
262      if ( $display )
263           echo $title;
264      else
265           return $title;
266
267 }
268