WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| 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 | |