SimpleRestrict allows you to restrict access to specific user roles on a page-by-page basis.
Author: | Dallas Read (profile at wordpress.org) |
WordPress version required: | 3.6 |
WordPress version tested: | 4.0.1 |
Plugin version: | 1.0.2 |
Added to WordPress repository: | 14-11-2014 |
Last updated: | 27-11-2014
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
Rating, %: | 94 |
Rated by: | 7 |
Plugin URI: | http://WPSimpleRestrict.com |
Total downloads: | 1 555 |
Active installs: | 100+ |
Click to start download |
What can I do with SimpleRestrict?
SimpleRestrict allows you to restrict access to specific user roles on a page-by-page basis. For unauthorized users, you can set where the page is redirected.
You can also manage who sees what content on a page using the [restrict] shortcode. It takes two attributes: only & except. Each attribute takes a comma separated list of user roles. For example:
[restrict only="administrator"]My Restricted Content[/restrict] - only the admin will see "My Restricted Content"
[restrict only="administrator,editor"]My Restricted Content[/restrict] - only the admin and editors will see "My Restricted Content"
[restrict only="administrator,editor" except="editor"]My Restricted Content[/restrict] - the only attribute can be overridden by the except attribute (the editor can no longer see the content)
How do I use SimpleRestrict?
- Go to the Edit page for the Page or Post you wish to protect (works for all "public" page/post types).
- On the right sidebar, you'll see the SimpleRestrict box.
- Check off which roles are allowed to see the page and save. If you want to redirect them to a particular page (eg. login), enter the URL in the Redirect URL field, otherwise it will simply redirect to the home page.
- Alternatively, use the [restrict only="editor"]This is restricted[/restrict] shortcode.