Role Based Content Restrictor

外掛說明

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

螢幕擷圖

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

安裝方式

  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.

常見問題集

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.

使用者評論

2025 年 10 月 19 日
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 🙂
2025 年 10 月 19 日
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.
閱讀全部 3 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Role Based Content Restrictor〉的開發相關工作。

參與者

將〈Role Based Content Restrictor〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.2.0

  • Confirmed compatibility with WordPress 6.9

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.