[wp-hackers] running a filter on stylesheet and template

John Blackbourn johnbillion+wp at gmail.com
Tue Jul 2 13:41:31 UTC 2013


On 2 July 2013 14:32, Chris McCoy <chris at lod.com> wrote:
> im running a filter on stylesheet and template to serve up a mobile theme,
> if i put the code in a plugin it works fine, but when its in a theme it
> doesnt seem to be running the filter.
>
> would the theme code be running too late?

You're running a filter in your theme to filter your theme? ;-)

Yes, these filters needs to be used by a plugin.

John


More information about the wp-hackers mailing list