[Plugin: W3 Total Cache] W3TC conflict with mobile redirect plugin | PHP header()
-
Hi there
I am developing a plugin for a user of your plugin but it seems to be conflicting with the re-direct functionality (i.e. mobile users are not being redirected) which uses a PHP header(‘Location: https://www.example.com’) redirect.
I am using the ‘template_redirect‘ action hook (have also tried the wp_head hook) but it doesn’t work when your plugin is activated.
Could you advise where might be a better place (or action hook) to run the redirect code so that the plugin can redirect to another site before your plugin kicks in?
I can send you my plugin if if helps.
Here’s the hook I am using:
add_action(‘template_redirect’, ‘redirect_user’, 0 );
- The topic ‘[Plugin: W3 Total Cache] W3TC conflict with mobile redirect plugin | PHP header()’ is closed to new replies.