BACK TO DIRECTORY

Role Based Content Restrictor

by inzidev

5.0
(3 ratings)

Role Based Content Restrictor allows you to restrict access to individual posts, pages, and custom post types based on user roles or login status — now with a simplified and intuitive interface.

Key Features

  • Restrict content based on user roles
  • Restrict content to logged-in users only
  • Restrict content to logged-out users (visitors only)
  • Set a custom redirect page per post
  • Configure a global fallback redirect from plugin settings
  • Clean radio-based UI to avoid conflicting settings
  • Fully backward compatible with previous versions

Improved Restriction UI

The plugin now uses a single “Restriction Type” selector instead of multiple toggles:

  • No Restriction
  • Restrict access to this content for roles
  • Restrict to Logged-in Users Only
  • Restrict to Logged-out Users Only (Visitors Only)

Only relevant fields are shown based on the selected option, making configuration clearer and preventing conflicts.

Smart & Conflict-Free Logic

The plugin ensures consistent behavior with a clear priority system:

  • Visitors Only highest priority (logged-in users are redirected, except administrators)
  • Logged-in Only restricts access to authenticated users
  • Role-based restriction applies when selected

Visitors Only Behavior

When Visitors Only is enabled:
– Logged-out users can access the content
– Logged-in users are redirected to a selected page
– If no page is selected, the plugin uses the post redirect or global fallback
– Administrators are always allowed access

Backward Compatibility

Existing settings are fully preserved:
– Older saved configurations are automatically mapped to the new interface
– No data loss when switching between restriction types
– Hidden fields are not submitted to prevent accidental overwrites

Perfect for:
* Membership sites
* Learning Management Systems (LMS)
* Intranets and company portals
* Client dashboards or gated content areas
* Login / Register pages (visible only to visitors)

Lightweight, developer-friendly, and works with any theme or builder (Elementor, Gutenberg, etc.).

About the Author

Inzamam Abbasi – Professional WordPress Developer with over 10 years of experience, specializing in custom plugin development and scalable WordPress solutions.
Delivered 1,000+ projects including membership systems, LMS platforms, and enterprise WordPress solutions.

Learn more at https://inzidev.com

Screenshots

Global settings page for default redirect configuration.

Global settings page for default redirect configuration.

Restriction Type selector with radio-based UI.

Restriction Type selector with radio-based UI.

Dynamic fields based on selected restriction type (roles, redirects, visitors-only settings).

Dynamic fields based on selected restriction type (roles, redirects, visitors-only settings).

Plugin Details

Active Installs
100
Total Downloads
1,593
Version
1.4.1
Requires WP
5.8
Requires PHP
7.4
Tested Up To
7.0.4
Added
2025-10-04
Last Updated
2026-08-08 2:08pm GMT

Ratings

5
3
4
0
3
0
2
0
1
0