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

admin

Administrator
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.

<strong><em>Solution</em></strong>

I have found a solution and posted it on this <a href="https://stackoverflow.com/questions...count-page-for-normal-users/48332692#48332692">related question</a>