Continuing the discussion from A hook that fires before wp_head() on the front end?:
If, for example I want to do a wp_is_mobile check…
I have tried
template_redirect and then I tried
init and then I tried
But with all of these I am getting a “too many redirects” error.
What would be the best hook for this?
template_redirect just didn’t work (a different redirect rule took precedence).