Login
Roast topics
Find topics
Find it!
From:
Mark on WordPress
(Uncensored)
subscribe
Don’t use template_redirect to load an alternative template file – Mark on WordPress
https://markjaquith.wordpress.com/2014/02/19/template_redirect-is-not-for-loading-templates/
links
backlinks
Tagged with:
wordpress
Roast topics
Find topics
Roast it!
template_redirect is a popular WordPress hook, for good reason. When it runs, WordPress has made its main query. All objects have been instantiated, but no output has been sent to the browser. It i…