Title: Make other roles also switch
Last modified: August 30, 2016

---

# Make other roles also switch

 *  Resolved [befla.net](https://wordpress.org/support/users/beflanet/)
 * (@beflanet)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/make-other-roles-also-switch/)
 * Hi,
 * i want an editor and autor also can switch the user. How to do this?
    Thanks 
   for answer.
 * [https://wordpress.org/plugins/user-switching/](https://wordpress.org/plugins/user-switching/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [John Blackbourn](https://wordpress.org/support/users/johnbillion/)
 * (@johnbillion)
 * WordPress Core Developer
 * [11 years, 1 month ago](https://wordpress.org/support/topic/make-other-roles-also-switch/#post-6248587)
 * You can do this by writing some code to filter the capabilities, but you need
   to be aware of the security implications (you don’t want to allow an editor to
   switch to an administrator account, for example).
 * Take a look at the `filter_user_has_cap()` method in the plugin. There’s quite
   a bit of inline documentation.
 *  Thread Starter [befla.net](https://wordpress.org/support/users/beflanet/)
 * (@beflanet)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/make-other-roles-also-switch/#post-6248656)
 * Someone can help me to code it? Thanks a lot.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Make other roles also switch’ is closed to new replies.

 * ![](https://ps.w.org/user-switching/assets/icon.svg?rev=3193956)
 * [User Switching](https://wordpress.org/plugins/user-switching/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/user-switching/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/user-switching/)
 * [Active Topics](https://wordpress.org/support/plugin/user-switching/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/user-switching/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/user-switching/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [befla.net](https://wordpress.org/support/users/beflanet/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/make-other-roles-also-switch/#post-6248656)
 * Status: resolved