• Resolved alvima

    (@alvima)


    Hello,

    I have installed Woocommerce and WCVendors, so in my page there are the following users:

    – admin with profile in backend
    – vendor with profile in backend
    – client with profile in frontend

    When I access to profile of vendor at the top of the page appear a link to come back admin profile. Problem is that when I access to client profile, I am redirected to frontend and from frontend there is no link to return to admin profile.

    It′s possible to solve it? Thank you.

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

    (@johnbillion)

    WordPress Core Developer

    User Switching adds a Switch Back link to several places:

    * The login screen
    * The user profile menu in the admin toolbar
    * The Meta widget
    * The footer of your site, if neither of the above are shown

    Note that the link in the footer can sometimes be hidden by styles in your theme.

    The switch back link doesn’t do anything. It just logs you out of the current user profile you’re logged in with. Leaves you on the same page.

    I was able to modify the code and force it to return back to the USER list in admin.

    Open /wp-content/plugins/user-switching/user-switching.php

    Save a copy of it. Open the production version, then locate line 548:

    
    //'redirect_to' => urlencode( self::current_url() ),
    'redirect_to' => urlencode( "https://www.YOURDOMAIN.com/wp-admin/users.php" ),
    
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘come back to admin when user profile is in frontend’ is closed to new replies.