[theme-reviewers] Usage of wp_title filter.

Shinra Web Holdings contact at shinraholdings.com
Wed Oct 17 17:24:18 UTC 2012


http://shinraholdings.com/59/using-the-wp_title-filter/

On Wed, Oct 17, 2012 at 10:26 AM, esmi at quirm dot net <esmi at quirm.net>wrote:

> on 17/10/2012 15:27 Philip M. Hofer (Frumph) said the following:
>
>  That is precisely how to do it.  But you should also return the original
>> $title being passed through the filter
>>
>
> Good point. I noticed that you're using is_feed() too.
>
> I've corrected the example in the Codex page to use:
>
>
>     if( !is_feed() ) return get_bloginfo( 'name' ) . $page_type . $title .
> $page_num;
>     else return $old_title;
>
> <http://codex.wordpress.org/**Plugin_API/Filter_Reference/**
> wp_title#Example<http://codex.wordpress.org/Plugin_API/Filter_Reference/wp_title#Example>
> >
>
>
> Mel
> --
> http://quirm.net
> http://blackwidows.co.uk
> ______________________________**_________________
> theme-reviewers mailing list
> theme-reviewers at lists.**wordpress.org<theme-reviewers at lists.wordpress.org>
> http://lists.wordpress.org/**mailman/listinfo/theme-**reviewers<http://lists.wordpress.org/mailman/listinfo/theme-reviewers>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20121017/4aaac297/attachment-0001.htm>


More information about the theme-reviewers mailing list