🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Account Get it free
ABCode View As Role Switcher icon
Maintained Tested with WP 7.1 #1 in frontend testing

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.

Active installs<10New
Downloads · 30d65▲ +18.2% vs prev. 30d
Rating—0 reviews
Health score54/100Fair
All-time downloads1.4KSince Oct 2024
Support resolved—No recent threads
RequiresWP 5.0PHP 7.4+
Downloads · 7d17▼ -19% week over week
Our verdict

Use with caution

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.

  • Tested with the latest WordPress (7.1)
  • Small user base (<10 active installs)
  • Very few reviews so far

Daily downloads

123Sep 1Oct 15Nov 29
Yesterday2
Daily average (1y)1
Peak day33Aug 4, 2026
Last 12 months521

Download spikes usually follow a new release — each site that auto-updates counts as a download.

Rankings

Where ABCode View As Role Switcher stands today

WordPress.org search rankings

Live position in the plugin search, top 100
KeywordPositionCompeting pluginsCategory
frontend testing >100 961 Best frontend testing plugins →
role switcher #63 404 Best role switcher plugins →
switch role >100 2,242 Best switch role plugins →
user roles >100 6,916 Best user roles plugins →
view as user >100 10,000 Best view as user plugins →

About ABCode View As Role Switcher

From the official readme · v2.0.0

Description

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.

Features

  • 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?”

How it works

  1. Go to View As in the toolbar
  2. Choose a role, or View as a logged-out visitor
  3. Browse the site the way that role would
  4. 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.

Privacy

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

  1. Upload the simple-admin-role-switcher folder to /wp-content/plugins/
  2. Activate the plugin through the Plugins menu in WordPress
  3. Use View As in the toolbar. Settings, if you want them, are at Tools > View As Role

Changelog

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

  • Initial release

Full changelog on WordPress.org →

Screenshots

The View As menu in the toolbar, listing every role you have chosen to test with
The View As menu in the toolbar, listing every role you have chosen to test with
A switched session, with the toolbar showing the role being viewed and the way back
A switched session, with the toolbar showing the role being viewed and the way back
Tools > View As Role, where you choose which roles appear and how long a session lasts
Tools > View As Role, where you choose which roles appear and how long a session lasts

For developers

Is this your plugin? Show off the numbers.

Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.

Active installs badge Rating badge Health score badge

FAQ

ABCode View As Role Switcher: quick answers

Straight answers, pulled from live WordPress.org data.

Source: 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.

Powered by PageForge

One template and a spreadsheet. A real page for every search.

PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.

  • CSV and XLSX, plus Google Sheets on Professional and Enterprise
  • Its own title, URL, SEO fields and schema for every page
  • Works with the block editor, Elementor, Divi and Avada
  • Free on WordPress.org, no credit card

↑↓ to move↵ to open