• Resolved Elwazeery

    (@elwazeery)


    Hello
    When I switch to a user , it redirects me to “My Account” page , and refuse to enter the admin dashboard

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    This is likely caused by another plugin (or theme) on your site.

    Can you try deactivating all your other plugins one by one to see if you can identify the plugin that’s causing the problem? Try switching to one of the default themes too, such as Twenty Seventeen.

    Thread Starter Elwazeery

    (@elwazeery)

    Thank you
    It’s from woocommerce
    I disabled it

    
    add_filter('woocommerce_prevent_admin_access', '_wc_prevent_admin_access', 10, 1);
    
    function _wc_prevent_admin_access($prevent_admin_access) {
        
        return false;
    }
    
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘problem on Redirecting after switch’ is closed to new replies.