[wp-hackers] Getting $sep from wp_title

Alex Andrews awgandrews at gmail.com
Wed Jun 10 18:21:29 GMT 2009


Hi all,

I'm probably being stupid, but I can't work out how to get the
variable $sep which is the second parameter of wp_title

wp_title($sep = '»', $display = true, $seplocation = '')

I want to get $sep out, so when I do a add_filter('wp_title',
'ribcage_page_title'); then ribcage_page_title can get $sep from
wp_title somehow and

Looking at the source it seems that wp_title, when it applies the
filters, passes the variables along. So does that mean that
ribcage_page_title gets these variables?

Cheers very much

Alex


More information about the wp-hackers mailing list