🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Conta Get it free
ABCode View As Role Switcher icon
Mantido Testado com 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.

Instalações ativas<10Novo
Downloads · 30d65▲ +18.2% vs prev. 30d
Classificação—0 comentários
Pontuação da saúde54/100Justo
Downloads de todos os tempos1.4KSince Oct 2024
Suporte resolvido—Sem tópicos recentes
RequerWP 5.0Php 7.4+
Downloads · 7d17▼ -19% week over week
Nosso veredicto

Use com cautela

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.

  • Testado com as últimas WordPress (7.1)
  • Base de usuários pequenas (<10 instalações ativas)
  • Muito poucos comentários até agora

Downloads diários

123Sep 1Oct 15Nov 29
Ontem2
Média diária (1y)1
Dia de pico334 de agosto de 2026
Últimos 12 meses521

Os picos de download geralmente seguem uma nova versão — cada site que atualiza automaticamente é um download.

Rankings

Where ABCode View As Role Switcher stands today

WordPress.org Classificações de pesquisa

Posição ao vivo na pesquisa de plugins, top 100
Palavra chavePosiçãoPlugins concorrentesCategoria
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

Do Readme oficial · v2.0.0

Descrição

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.

Recursos

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

Como funciona

  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.

Privacidade

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.

Instalação

  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

Log de Changes

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

  • Lançamento inicial

Registro de change completo em WordPress.org →

Capturas de tela

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

Para desenvolvedores

Este é o seu plugin? Mostre os números.

Adicione um crachá ao vivo ao seu site, Documentos ou Readme do GitHub. Ele é atualizado por conta própria - nenhuma conta necessária.

Selo de Instalações Ativas Selo de classificação Distintivo de pontuação de saúde

FAQ

ABCode View As Role Switcher: quick answers

Respostas diretas, extraídas de dados ao vivo WordPress.org.

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

Alimentado por PageForge

Um modelo e uma planilha. Uma página real para cada pesquisa.

PageForge Transforma cada linha de um CSV em uma página WordPress com seu próprio título, URL, SEO campos e esquema, construído no layout que você já desenhou. Gratuito em WordPress.org.

  • CSV e XLSX, mais Google Sheets em Profissional e Empresarial
  • Seu próprio título, URL, SEO campos e esquema para cada página
  • Funciona com o editor de blocos, Elementor, Divi e Avada
  • Gratuito em WordPress.org, sem cartão de crédito

↑↓ mover↵ abrir