Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Mike Jolley

    (@mikejolley)

    Thread Starter sridharyvrl

    (@sridharyvrl)

    This is not helping anyway. Problem remains same after adding the code to functions.php

    Plugin Contributor Mike Jolley

    (@mikejolley)

    If you’ve added this code correctly and you’re still being redirected to account instead of admin, it’s not WooCommerce core doing the redirect but one of the addons/themes. Check you added the code right.

    Thread Starter sridharyvrl

    (@sridharyvrl)

    I don’t want to redirect to admin. When a viewer/user enters the site name it shouldn’t get redirected. Please check in the viewer/user point of view.

    Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    By default, WooCommerce does not redirect to admin. We have measures in place to prevent customers from seeing the admin bar and going to wp-admin.

    Your first comment was about being redirected to “/my-account/”, so Mike gave you code to stop users from being redirected to the my account page. Now you don’t want them redirected to wp-admin? So where do you want the redirect? It’s either My Account or wp-admin.

    Only customer/users should be redirect to the My Account page when trying to access wp-admin though, administrators and shop managers should still be able to access wp-admin. If that isn’t working correctly, then you have a theme or plugin conflict.

    Try temporarily switching back to the WordPress Twenty Sixteen Theme, or Storefront, and disable all plugins except for WooCommerce. If that resolves the issue, then slowly re-enable features until you find the one that’s causing the conflict.

    I am having reports of the same issue from some of my clients, using Storefront Theme and testing different on/off plugins as well.

    Going to ***.com/wp-admin/ make some users go to ***.com/my-account/

    I have seen several posts about this, but none that offer a solution.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘My site is getting redirected to my-account page’ is closed to new replies.