As the codex page explains, “wp” is the earliest hook that conditional tags can work. I’m in a situation where i need to run these on ‘plugins_loaded’ hook and so these functions don’t work anymore. Is there any way to force WP to build the query on that hook?
I was trying to change the theme based on the page the user is visiting. The “wp” hooks happens after theme setup so that was not possible. I actually implemented it by matching URLs instead of using conditional tags: http://wordpress.org/plugins/theme-logic/. 🙂
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘using conditional tags before "wp" hook’ is closed to new replies.