Switch User


It’s a plugin for developers.
The intent is create a simple interface where the logged user can switch to another user account.

This make tests and debug infos more fast (especially when you are working with different roles).

For security:

  • Only logged users can switch user accounts in website with WP_DEBUG false.
  • Passwords are not revealed (of course).
  • Uses the cookie authentication function ‘wp_set_auth_cookie’ to switch accounts.
  • Implements the nonce security system (of course).

Obs: For now, the interface appears only in website, not in dashboard.


Through the panel:

  1. Go to the Plugins menu and click Add New.
  2. Search for Switch User.
  3. Click ‘Install Now’ next to the Switch User plugin.
  4. Activate the plugin.

Uploading by yourself:

  1. Upload the entire switch-user folder to the /wp-content/plugins/ directory or the .zip file in Plugins menu.
  2. Activate the plugin.


How switch users?

The interface to switch users will appear fixed on right side of your website.

I can’t find the interface!

Make sure your theme uses get_footer() function… or read next question.

Can I use it in production (real) website?

NO! For secury reasons, of course…
But it will works only if you set WP_DEBUG to true or you’re already logged.

Contributors & Developers

“Switch User” is open source software. The following people have contributed to this plugin.


“Switch User” has been translated into 1 locale. Thank you to the translators for their contributions.

Translate “Switch User” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



  • Fix ajax request


  • Code refactored (POO)
  • Improved front-end
  • I18n by @leobaiano


  • File architecture improved by @leobaiano


  • First version: you can switch through all users registered.