ABCode View As Role Switcher
ABCode View As Role Switcher lets an administrator see the front end of the site exactly as a chosen user role sees it, without logging out and without creating a test account for every role on the site.
Mit Vorsicht verwenden
ABCode View As Role Switcher works, but test it on a staging site before relying on it in 2026. Was last updated 4 months ago, and scores 54/100 on our health check.
- Getestet mit dem neuesten WordPress (7.1)
- Kleine Benutzerbasis (<10 aktive Installationen)
- Bisher sehr wenige Bewertungen
Tägliche Downloads
Download-Spitzen folgen normalerweise einer neuen Version - jede Website, die automatisch aktualisiert wird, gilt als Download.
Ranglisten
Where ABCode View As Role Switcher stands todayWordPress.org Ranglisten suchen
Live-Position in der Plugin-Suche, Top 100| Stichwort | Position |
|---|---|
| frontend testing | >100 |
| role switcher | #63 |
| switch role | >100 |
| user roles | >100 |
| view as user | >100 |
About ABCode View As Role Switcher
Aus der offiziellen Readme · V2.0.0Beschreibung
ABCode View As Role Switcher lets an administrator see the front end of the site exactly as a chosen user role sees it, without logging out and without creating a test account for every role on the site.
Pick a role from the toolbar, and the front end reloads with that role’s capabilities. Member-only content hides itself. Price rules, menus, shortcodes and blocks that check who is looking behave as they would for a real customer or subscriber. Pick Switch back and you are yourself again.
Switch to a role, not to a user
Most switching plugins log you in as a specific person. That is a different job, and it means keeping a spare account for every role you want to check, then keeping those accounts in step as the site changes.
This plugin switches to the role. Add a role today, test it in the next click. There is no dummy account to create, no password to store, no extra user cluttering the users list, and nothing to tidy up afterwards. It never touches anybody’s real account.
Capabilities actually change
The switch is applied where WordPress decides what a visitor is allowed to see, so current_user_can() tells the truth for the length of the session. That is the function themes, WooCommerce, membership plugins and page builders all call, which is why the pages you test look like the pages your users get.
The view is always a subset of your own account. It can only ever take capabilities away, never add them, so it can never be used to reach something you could not already reach.
Merkmale
- Switch from the toolbar: every role on the site is one click away, on the front end and inside wp-admin
- View as a logged-out visitor: check the guest experience without a private window or a second browser
- Real capability switching:
current_user_can(),user_can()and role checks all agree with the role you picked - A visible switched state: the toolbar item turns green and reads “Viewing as: Subscriber”, so you always know what you are looking at
- One-click way back: the same toolbar item ends the session, and wp-admin is never switched, so you cannot lock yourself out
- Automatic expiry: a session ends by itself after 15 minutes, 1 hour or 8 hours, whichever you choose
- Nothing is saved to the database: no user’s stored roles or capabilities are ever written to
- Choose what appears: tick the roles you actually test with, and leave the rest out of the menu
- Secure by design: a signed, HttpOnly cookie tied to your login session, plus a compulsory nonce on every switch
- Free forever: no premium tier, no feature locks, no upsells
- Translation ready: fully internationalised, with five languages included
Who is this for?
- WooCommerce shops checking what a customer, a shop manager or a guest sees on a product page
- Membership and course sites confirming that gated content really is gated
- Agencies and freelancers handing over a site and wanting proof the permissions are right
- Anybody who has ever asked “does this menu item show up for subscribers?”
Wie es funktioniert
- Go to View As in the toolbar
- Choose a role, or View as a logged-out visitor
- Browse the site the way that role would
- Choose Switch back to your own account when you are done
The switch applies to front-end page loads only. wp-admin, the REST API and admin AJAX always run as your real account, on purpose: it means there is always a way back, whatever the role you switched to is allowed to do.
Privatsphäre
The plugin stores one cookie, set only when you start a view session, and only for you. It holds the role being viewed, an expiry time and a signature, and is removed when the session ends, when you log out, or when it expires. Nothing is sent anywhere, no data is collected, and no third party is involved.
Installation
- Upload the
simple-admin-role-switcherfolder to/wp-content/plugins/ - Activate the plugin through the Plugins menu in WordPress
- Use View As in the toolbar. Settings, if you want them, are at Tools > View As Role
Änderungsprotokoll
Important: in version 1.0 switching roles did not change capabilities, so the site behaved as an administrator throughout and any testing done with it should be repeated. 2.0.0 makes the switch real, and adds nonce checks, a signed cookie and automatic expiry.
2.0.0
A full rewrite. Role switching now works.
- Fixed the central bug: switching roles had no effect on capabilities. Version 1.0 assigned to a property on the user object that WordPress never recalculates, so
current_user_can()carried on answering as an administrator. The site behaved exactly as it always had while the toolbar claimed otherwise. Anything tested with 1.0 was, in effect, tested as an administrator and is worth checking again. - Added: capability filtering, applied where WordPress resolves what the current user may do, so themes, WooCommerce, membership plugins and page builders all see the switched role
- Added: ownership-aware handling of meta capabilities, so content you wrote yourself is treated as somebody else’s while you are viewing as another role
- Added: the switched view is always a subset of your own capabilities and can never grant one you do not have
- Added: a settings screen at Tools > View As Role for choosing which roles appear in the toolbar and how long a session lasts
- Added: automatic expiry, at 15 minutes, 1 hour or 8 hours
- Added: the switched state is now obvious in the toolbar, with a one-click way back from every page
- Added: multisite support, including network administrators
- Added: full internationalisation, with German, Spanish, French, Italian and Brazilian Portuguese translations
- Fixed: the nonce check could be skipped entirely by leaving the nonce out of the request, and the guest and reset links never carried one. Every switch now verifies a nonce, with no exceptions
- Fixed: the cookie was trusted without re-checking that the person presenting it was an administrator
- Fixed: the cookie is now signed, HttpOnly, Secure over HTTPS, SameSite Lax, and scoped to the site’s own cookie path
- Fixed: the switch is now in place at the start of the request rather than at template load, so plugins that resolve capabilities early see it
- Fixed: redirects now use
wp_safe_redirect() - Fixed: role comparisons now use strict matching
- Changed: renamed to ABCode View As Role Switcher. The plugin slug, your settings and your update path are unchanged
- Changed: the switch applies to front-end page loads only. wp-admin always runs as your real account, which is what guarantees you can never be locked out
- Removed:
load_plugin_textdomain(), which WordPress has not needed since 4.6
1.0
- Erste Freigabe
Für Entwickler
Ist das dein Plugin? Zeigen Sie die Zahlen.
Fügen Sie Ihrer Website, Docs oder GitHub Readme ein Live-Badge hinzu. Es wird von selbst aktualisiert - kein Konto erforderlich.
Fragen und Antworten
ABCode View As Role Switcher: quick answers
Gerade Antworten, gezogen von Live WordPress.org Daten.
Quelle: WordPress.org
Is ABCode View As Role Switcher free?
Yes. ABCode View As Role Switcher is free to download and use from the official WordPress.org plugin directory.
Is ABCode View As Role Switcher safe to use in 2026?
ABCode View As Role Switcher works, but test it on a staging site before relying on it in 2026. Was last updated 4 months ago, and scores 54/100 on our health check.
How many websites use ABCode View As Role Switcher?
ABCode View As Role Switcher is active on <10 WordPress websites and has been downloaded 1,357 times since it launched in October 2024. It was downloaded 65 times in the last 30 days.
Does ABCode View As Role Switcher work with WordPress 7.1?
Yes. The developer has tested ABCode View As Role Switcher up to WordPress 7.1.5, the latest release. It requires WordPress 5.0 or newer.
What PHP version does ABCode View As Role Switcher need?
ABCode View As Role Switcher requires PHP 7.4 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was ABCode View As Role Switcher last updated?
The latest version, 2.0.0, was released on August 13, 2026 (4 months ago).
Who makes ABCode View As Role Switcher?
ABCode View As Role Switcher is developed and maintained by Ash Brentnall | ABCode.
Angetrieben von PageForge
Eine Vorlage und eine Tabelle. Eine echte Seite für jede Suche.
PageForge Verwandelt jede Zeile eines CSV in eine WordPress-Seite mit eigenem Titel, URL, SEO Felder und Schema entworfen. Kostenlos auf WordPress.org.
- CSV und XLSX, plus Google Sheets auf Beruf und Unternehmen
- seinen eigenen Titel, URL, SEO Felder und Schema für jede Seite
- Arbeitet mit dem Blockeditor, Elementor, Divi und Avada
- Kostenlos auf WordPress.org, keine Kreditkarte



