Role Based Content Restrictor

Apraksts

Role Based Content Restrictor allows you to restrict access to individual posts, pages, and custom post types based on user roles.

You can:
* Allow specific roles per page/post.
* Set a custom redirect page per post.
* Configure a global fallback redirect from the plugin settings.
* Optionally display a message or notice on the redirect page.

Perfect for:
* Membership sites
* Learning Management Systems (LMS)
* Intranets and company portals
* Client dashboards or gated content areas

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.
I’ve successfully delivered 1,000+ projects, including membership systems, e-learning platforms, booking systems, and more.

Learn more at inzidev.com

Ekrānuzņēmumi

  • The global settings page, where you can define a default redirection page for users who do not have the required role.
  • The page/post restriction settings, allowing you to limit access to specific user roles and assign a custom redirection page.

Uzstādīšana

  1. Upload the plugin folder to /wp-content/plugins/role-based-content-restrictor/ or install directly from the WordPress Plugin Directory.
  2. Activate the plugin from Plugins > Installed Plugins.
  3. Go to Settings > Role Restrictions to configure the default redirect.
  4. Edit any page/post and use the Restrict Access meta box to choose roles and a redirect page.

BUJ

Will it work with custom post types?

Yes! The plugin works with all public post types registered in WordPress.

Can I redirect users to an external URL?

Not yet. You can redirect them to a page where you handle the external redirect using a simple script or shortcode.

Does it support multiple roles per page/post?

Yes, you can select multiple roles for each piece of content.

What happens if no redirect page is set?

The plugin will use the global fallback page set in the plugin settings. If that’s not set, users are redirected to the homepage.

Atsauksmes

19 oktobris, 2025
I was looking for something focused, clean, lighweight and found this great plugin which suited best as per my requirements, so far loving it.. Thanks 🙂
19 oktobris, 2025
I was looking for an easy way to protect specific pages for certain users, and this plugin worked perfectly! It’s simple to use and very effective for restricting access to posts or custom post types. Highly recommended for anyone who needs role-based content control.
Lasīt 3 atsauksmes

Autori un izstrādātāji

“Role Based Content Restrictor” ir atvērtā pirmkoda programmatūra. Šo spraudni ir veidojuši šādi cilvēki.

Līdzdalībnieki

Izmaiņu žurnāls

1.0.2

  • Minor fixes for submission and compliance with WordPress.org guidelines.

1.0.1

  • Improved compatibility with WordPress.org guidelines (removed load_plugin_textdomain).
  • Updated text domain and folder structure to match slug.
  • Minor code cleanups.

1.0.0

  • Initial public release.