Which hook should be used to add an action containing a redirect?

Like kaiser answered template_redirect hook is indeed appropriate for redirects.

Also you should use wp_redirect() function, rather than setting header.

Leave a Comment