Title: WP isAdmin
Author: Blaine Moore
Published: <strong>18 de Setembro, 2020</strong>
Last modified: 16 de Maio, 2022

---

Buscar plugins

Este plugin **non se actualizou en máis de 2 anos**. É posible que xa non sexa compatible
ou mantido por ninguén, ou podes ter problemas de compatibilidade cando se usa con
novas versións de WordPress.

![](https://s.w.org/plugins/geopattern-icon/wp-isadmin.svg)

# WP isAdmin

 Por [Blaine Moore](https://profiles.wordpress.org/blaine-moore/)

[Descargar](https://downloads.wordpress.org/plugin/wp-isadmin.zip)

 * [Detalles](https://gl.wordpress.org/plugins/wp-isadmin/#description)
 * [Valoracións](https://gl.wordpress.org/plugins/wp-isadmin/#reviews)
 * [Desenvolvemento](https://gl.wordpress.org/plugins/wp-isadmin/#developers)

 [Soporte](https://wordpress.org/support/plugin/wp-isadmin/)

## Descrición

This plugin provides provides a simple short code to add or hide custom content 
to your posts and pages based on whether a user is an administrator (or other role)
or not.

This started as a way around having an automatic redirect if somebody belonged to
a specific WishListMember membership level but not wanting to redirect _off_ of 
the page
 if I was an admin (who always has access to all membership levels.)

## Capturas

[⌊A simple example for how to use the shortcodes.⌉⌊A simple example for how to use
the shortcodes.⌉[

A simple example for how to use the shortcodes.

[⌊An example that includes a javascript redirect for WishListMember private tags,
which still allows the admin user to stay on the page.⌉⌊An example that includes
a javascript redirect for WishListMember private tags, which still allows the admin
user to stay on the page.⌉[

An example that includes a javascript redirect for WishListMember private tags, 
which still allows the admin user to stay on the page.

## Preguntas frecuentes

### What shortcodes are available?

[isAdmin][/isAdmin] and [isNotAdmin][/isNotAdmin] are both supported, and will only
show or hide the content (respectively) if the user is logged in and has an administrator
role (by default).

### Can I specify other roles than just the administrator role?

Yes, you can set the _role_ or _roles_ attribute. So if you’d like content that 
can only be seen by users with the “editor” role, you would use: [isAdmin roles=”
editor”][/isAdmin].

### Can I specify more than one role?

Yes, just provide a comma-separated list to the _roles_ attribute. For example: [
isAdmin roles=”editor,administrator”][/isAdmin]

### What is the difference between the *role* and *roles* attributes?

There is no difference; both are available as a convenience as I expected that if
I wanted to change it I wouldn’t remember if I needed it to be plural or not and
it would seem odd to specify a plural attribute for a singular condition (and vice
versa.) Basically, choose one or the other (if you want something other than checking
for administrator) and it will work as expected. If you specify both, then the _roles_
attribute takes precedence unless you set it to the default, in which case it will
use the _role_ attribute.

## Comentarios

Non hai recensións para este plugin.

## Colaboradores e desenvolvedores

“WP isAdmin” é un software de código aberto. As seguintes persoas colaboraron con
este plugin.

Colaboradores

 *   [ Blaine Moore ](https://profiles.wordpress.org/blaine-moore/)

[Traduce “WP isAdmin” ao teu idioma.](https://translate.wordpress.org/projects/wp-plugins/wp-isadmin)

### Interesado no desenvolvemento?

[Revisa o código](https://plugins.trac.wordpress.org/browser/wp-isadmin/), bota 
unha ollada ao[repositorio SVN](https://plugins.svn.wordpress.org/wp-isadmin/), 
ou subscríbete ao [log de desenvolvemento](https://plugins.trac.wordpress.org/log/wp-isadmin/)
por [RSS](https://plugins.trac.wordpress.org/log/wp-isadmin/?limit=100&mode=stop_on_copy&format=rss).

## Rexistro de cambios

= 1.0.1 (2020-09-17)=
 * Initial Version

## Meta

 *  Versión **1.0.1**
 *  Última actualización **Fai 4 anos**
 *  Instalacións activas **Menos de 10**
 *  Versión de WordPress ** 4.7 ou superior **
 *  Probado ata **6.0.0**
 *  Versión de PHP ** 7.0 ou superior **
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/wp-isadmin/)
 * Etiqueta
 * [shortcode](https://gl.wordpress.org/plugins/tags/shortcode/)
 *  [Vista avanzada](https://gl.wordpress.org/plugins/wp-isadmin/advanced/)

## Valoracións

Aínda non se enviaron valoracións.

[Your review](https://wordpress.org/support/plugin/wp-isadmin/reviews/#new-post)

[Ver todas as valoracións](https://wordpress.org/support/plugin/wp-isadmin/reviews/)

## Colaboradores

 *   [ Blaine Moore ](https://profiles.wordpress.org/blaine-moore/)

## Soporte

Tes algo que dicir? Necesitas axuda?

 [Ver o foro de soporte](https://wordpress.org/support/plugin/wp-isadmin/)

## Doar

Queres apoiar o progreso deste plugin?

 [ Dona a este plugin ](https://www.charitynavigator.org/index.cfm?bay=search.summary&orgid=7614)