User Switching
[resolved] Allow user switching for specific admin only. (3 posts)

  1. Noahj Champion
    Posted 2 years ago #


    Thanks for this awesome plugin.

    I searched and didn't find this, but I would like the User Switching option to be only for myself. I'm the admin and only in some cases would I need to allow user switching for another administrator.

    How can I achieve just the user switching for me and not all admins.

    I have some things hidden from other admins in my install, but by default with User Switching they can switch to my account and see all those hidden menu items.



  2. John Blackbourn
    WordPress Core Developer
    Plugin Author

    Posted 2 years ago #

    Take a look at the User Switching For Regular Admins plugin and you'll see how it alters the logic in the user_has_cap filter. You could alter this to only allow a given user ID to switch users.

  3. Noahj Champion
    Posted 2 years ago #

    Hey, thanks for this!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • User Switching
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic