
內容簡介
### 總結:
Role Based Content Restrictor 可讓您根據用戶角色來限制對個別文章、頁面和自訂文章類型的訪問權限。輕量、開發者友好並且適用於任何主題或構建工具(如 Elementor、Gutenberg 等)。
### 問題與答案:
1. Role Based Content Restrictor 能夠限制對哪些內容進行訪問?
- 個別文章、頁面和自訂文章類型
2. 可以在每個文章或頁面上允許哪些具體的用戶角色訪問?
- 允許特定角色
3. 對於每個文章,可以設置什麼樣的自定義重定向頁面?
- 自定義重定向頁面
4. 在外掛設置中,可以配置什麼樣的全局回退重定向?
- 全局回退重定向
5. 在重定向頁面上可以選擇顯示什麼樣的消息或通知?
- 可選擇顯示消息或通知
6. Role Based Content Restrictor 尤其適合於哪些情境使用?
- 會員網站、學習管理系統(LMS)、內部網、客戶控制面板或受限內容區域
7. 作者 Inzamam Abbasi 擁有多少年的 WordPress 開發經驗?
- 10 年
8. 作者 Inzamam Abbasi 成功交付了多少個項目?
- 1,000+ 項目
9. 作者 Inzamam Abbasi 擅長於開發什麼樣的功能?
- 客製化插件開發和可擴展的 WordPress 解決方案
10. 想瞭解更多,請參訪什麼網站?
- [inzidev.com](https://inzidev.com)
外掛標籤
開發者團隊
② 後台搜尋「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 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
