Stop WooCommerce redirecting wp-login.php and wp-admin to account pages


Staff member
With a plain-vanilla Wordpress install, a subscriber can access /wp-login.php, login and visit the dashboard.

I've found that after installing WooCommerce, if a subscriber is logged in and then tries to revisit the wp-admin or wp-login.php they are redirected to the my-account page set in the WooCommerce settings.

I wondered if there is anyway to remove this functionality as it isn't right for my site.

Any thoughts much appreciated.


I have found a solution and posted it on this <a href="">related question</a>