User Switching from Admin Bar
-
This is a great plugin and a real time saver when it comes to switching to other users to check how they are seeing things.
This is perhaps more of a feature request or to get a little help to get me started with this.
What would be really good would be to have a “Switch To” link in the WordPress admin bar (for Admins and Super Admins only) and when you hover it, it lists all the users, clicking one then switches to that user.
I am comfortable with creating the admin bar list etc. but how would I go about getting the URL for each user to switch to that user? I notice on the admin pages where it lists users the URL takes the form of:
https://yourdomain.com/wp-login.php?action=switch_to_user&user_id=10&_wpnonce=891df8af7e
It is the &_wpnonce=891df8af7e part that I would need help generating.
Would be delighted if someone could assist me with this and thanks in anticipation.
- The topic ‘User Switching from Admin Bar’ is closed to new replies.