Switch User

Description

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.

Installation

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.

FAQ

Installation Instructions

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.

Contributors

“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.

Changelog

2.1

  • Fix ajax request

2.0

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

1.0.1

  • File architecture improved by @leobaiano

1.0

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