Infinite redirection loop with WooCommerce
-
Hi there. It seems like there is a conflict between wp2fa and woocommerce.
Steps to reproduce the issue:- So I set up wp2fa to enforce 2fa on all users without a grace period.
- I tested by logging in as a subscriber user, woocommerce redirects me to /my-account page, but wp2fa redirects it back to /wp-admin/profile.php?show=wp-2fa-setup, redirecting it back to /my-account and the loop goes on until I hit a redirect error on the browser.
Can be solved by adding the following snippet to the active theme’s functions.php
add_action(‘admin_init’, function() {
add_filter( ‘woocommerce_prevent_admin_access’, ‘__return_false’, 100 ); }, 1 );
But it would be great if we could solve this.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Infinite redirection loop with WooCommerce’ is closed to new replies.