Title: User Role Switcher
Author: Dhanendran Rajagopal
Published: <strong>2020-02-25</strong>
Last modified: 2026-06-18

---

Szukaj wtyczek

![](https://ps.w.org/wp-user-role-switcher/assets/banner-772x250.jpg?rev=3576161)

![](https://ps.w.org/wp-user-role-switcher/assets/icon.svg?rev=3576149)

# User Role Switcher

 Autor: [Dhanendran Rajagopal](https://profiles.wordpress.org/dhanendran/)

[Pobierz](https://downloads.wordpress.org/plugin/wp-user-role-switcher.0.2.4.zip)

 * [Szczegóły](https://pl.wordpress.org/plugins/wp-user-role-switcher/#description)
 * [Recenzje](https://pl.wordpress.org/plugins/wp-user-role-switcher/#reviews)
 * [Rozwój](https://pl.wordpress.org/plugins/wp-user-role-switcher/#developers)

 [Wsparcie](https://wordpress.org/support/plugin/wp-user-role-switcher/)

## Opis

This plugin allows you to quickly swap between user roles in WordPress at the click
of a button. You’ll be instantly switched to the new user role. This is handy for
test environments where you regularly log out and in between different accounts,
or for administrators who need to switch between multiple accounts to test the feature
in different user roles.

### Features

 * Switch Role To: Instantly switch to any user role from the admin bar at top.
 * Switch back: Instantly switch back to your originating role.
 * Compatible with WordPress, WordPress Multisite, WooCommerce.

### Security

 * Only users with the ability to edit other users can switch user roles. By default
   this is only Administrators on single site installations, and Super Admins on
   Multisite installations.

### Usage

 1. Once plugin is activated, you will see _Switch Role To_ in the top admin bar.
 2. Clicking this will bring the list of user roles available in the system.
 3. Click on any user role you want to test as.
 4. You can switch back to your originating user role via the _Switch back_ link on
    the top admin bar.

## Recenzje

![](https://secure.gravatar.com/avatar/2acf7e162ff70e4cebef79dfafa97845a8deed68b7f01ed1069e2ba3369f524b?
s=60&d=retro&r=g)

### 󠀁[Great support!](https://wordpress.org/support/topic/great-support-3484/)󠁿

 [SiKth](https://profiles.wordpress.org/sikth/) 2021-04-02 1 odpowiedź

Was asking for a floating button to get back to the admin, got in in a couple of
days. Great plugin! Great support!

![](https://secure.gravatar.com/avatar/57e86f3d0d70e7ce3788a2820a96586ac4e5321a14eb5484a73cfefcc6a1e93d?
s=60&d=retro&r=g)

### 󠀁[Compatible 100% With WP 5.7](https://wordpress.org/support/topic/compatible-100-with-wp-5-7/)󠁿

 [c3media1](https://profiles.wordpress.org/c3media1/) 2021-03-14 1 odpowiedź

Great, i tested and it works non problem with Last Wordpress Version. Good job!

 [ Przeczytaj 2 recenzje ](https://wordpress.org/support/plugin/wp-user-role-switcher/reviews/)

## Kontrybutorzy i deweloperzy

„User Role Switcher” jest oprogramowaniem open source. Poniższe osoby miały wkład
w rozwój wtyczki.

Zaangażowani

 *   [ Dhanendran Rajagopal ](https://profiles.wordpress.org/dhanendran/)

[Przetłumacz wtyczkę “User Role Switcher” na swój język.](https://translate.wordpress.org/projects/wp-plugins/wp-user-role-switcher)

### Interesuje cię rozwój wtyczki?

[Przeglądaj kod](https://plugins.trac.wordpress.org/browser/wp-user-role-switcher/),
sprawdź [repozytorium SVN](https://plugins.svn.wordpress.org/wp-user-role-switcher/)
lub czytaj [dziennik rozwoju](https://plugins.trac.wordpress.org/log/wp-user-role-switcher/)
przez [RSS](https://plugins.trac.wordpress.org/log/wp-user-role-switcher/?limit=100&mode=stop_on_copy&format=rss).

## Rejestr zmian

#### 0.2.4

 * [Security] Role switching now requires the `promote_users` capability (administrators/
   super admins) instead of `manage_options`, preventing a lower-trust custom role
   granted `manage_options` from self-assigning a higher role such as administrator.

#### 0.2.3

 * [Security] Added a capability check to the role-switch handler so only administrators(
   or an already-switched user switching back) can switch roles.
 * [Security] The „Switch Back” action now verifies its nonce before changing any
   roles.
 * [Security] Escaped role-switch URLs and labels in the admin bar and floating 
   button output.
 * [Security] Hardened the post-switch redirect to a safe, local URL (no longer 
   trusts the host header).
 * [Fix] Replaced the deprecated `FILTER_SANITIZE_STRING` with core sanitization
   for PHP 8.1+ compatibility.

#### 0.2.0

 * [Improvements] Added floating action button when role is switched.

#### 0.1.0

 * Initial release

## Meta

 *  Wersja **0.2.4**
 *  Ostatnia aktualizacja **5 miesięcy temu**
 *  Włączone instalacje **100+**
 *  Wersja WordPressa ** 3.7 lub nowszej **
 *  Testowano do **7.0.8**
 *  Wersja PHP ** 7.4 lub nowszej **
 *  Język
 * [English (US)](https://wordpress.org/plugins/wp-user-role-switcher/)
 * Tagi
 * [role switcher](https://pl.wordpress.org/plugins/tags/role-switcher/)[switch user](https://pl.wordpress.org/plugins/tags/switch-user/)
   [testing](https://pl.wordpress.org/plugins/tags/testing/)[user management](https://pl.wordpress.org/plugins/tags/user-management/)
   [user roles](https://pl.wordpress.org/plugins/tags/user-roles/)
 *  [Widok zaawansowany](https://pl.wordpress.org/plugins/wp-user-role-switcher/advanced/)

## Oceny

 5 na 5 gwiazdek.

 *  [  2 recenzje 5-gwiazdkowe     ](https://wordpress.org/support/plugin/wp-user-role-switcher/reviews/?filter=5)
 *  [  0 recenzji 4-gwiazdkowych     ](https://wordpress.org/support/plugin/wp-user-role-switcher/reviews/?filter=4)
 *  [  0 recenzji 3-gwiazdkowych     ](https://wordpress.org/support/plugin/wp-user-role-switcher/reviews/?filter=3)
 *  [  0 recenzji 2-gwiazdkowych     ](https://wordpress.org/support/plugin/wp-user-role-switcher/reviews/?filter=2)
 *  [  0 recenzji 1-gwiazdkowych     ](https://wordpress.org/support/plugin/wp-user-role-switcher/reviews/?filter=1)

[Twoja opinia](https://wordpress.org/support/plugin/wp-user-role-switcher/reviews/#new-post)

[Zobacz wszystkierecenzje.](https://wordpress.org/support/plugin/wp-user-role-switcher/reviews/)

## Zaangażowani

 *   [ Dhanendran Rajagopal ](https://profiles.wordpress.org/dhanendran/)

## Wsparcie

Masz coś do dodania? Potrzebujesz pomocy?

 [Zobacz forum wsparcia](https://wordpress.org/support/plugin/wp-user-role-switcher/)