Plugin info

Total downloads: 710
Active installs: 0
Total reviews: 0
Average rating: 0
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 1
Last updated: 5/16/2022 (1378 days ago)
Added to WordPress: 9/18/2020 (5 years old)
Minimum WordPress version: 4.7
Tested up to WordPress version: 6.0.0
Minimum PHP version: 7.0

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 1378 days ago

20/100

Is WP isAdmin abandoned?

Possibly abandoned (last update 1378 days ago).

Compatibility

Requires WordPress: 4.7
Tested up to: 6.0.0
Requires PHP: 7.0

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

WP Shortcodes Plugin — Shortcodes Ultimate
Rating 4.9/5 (5,906 reviews)Active installs 500,000
MW WP Form
Rating 4.3/5 (22 reviews)Active installs 200,000
Rich Shortcodes for Google Reviews
Rating 4.9/5 (1,547 reviews)Active installs 100,000
Shortcoder — Create Shortcodes for Anything
Rating 4.9/5 (224 reviews)Active installs 100,000
Display Posts – Easy lists, grids, navigation, and more
Rating 4.8/5 (164 reviews)Active installs 90,000
Widget Shortcode
Rating 4.9/5 (67 reviews)Active installs 80,000

Description

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.)

Installation

No installation instructions available

Frequently Asked Questions

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.

Review feed

No reviews available

Screenshots

  1. A simple example for how to use the shortcodes.

    A simple example for how to use the shortcodes.

  2. 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.

Changelog

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