
內容簡介
Restrict User Access 是一款 WordPress 快速且簡單的會員外掛。幾分鐘內,即可限制您的內容,而非需要幾個小時。
快速建立有付費等級(如白金、黃金或免費)的會員網站,用戶購買 WooCommerce 中的產品時頒發等級。
👥 無限等級設置
用戶可以擁有多個等級,您可以控制會員資格應該持續多久。當未經授權的使用者嘗試訪問限制內容時,您可以將他們重定向到另一個 URL 或顯示提示簡介。
⚡等級會員自動化
根據 Triggers(觸發器)或 Traits(特徵),自動為用戶添加等級:
產品購買(WooCommerce、Easy Digital Downloads)
使用者角色
已登入或訪客
BuddyPress 成員類型
🔒 上下文內容保護
限制對您的文章、頁面或分類的訪問。您甚至可以結合條件:保護所有由選定作者撰寫、標記為「Premium」的文章。
以下訪問條件均可使用:
文章、頁面和自訂文章類型
標籤、分類或自訂分類法的內容
由選定作者撰寫的內容
頁面範本
博客頁面和文章類型存檔
作者存檔
分類法存檔
首頁、搜尋結果、404 頁面找不到
bbPress 檔案、版面和主題
BuddyPress 資料夾
語言(Polylang、qTranslate X、TranslatePress、Transposh、Weglot、WPML)
Pods 頁面
✅ 授權和拒絕能力
易於使用的 WordPress 使用者管理器讓您完全控制會員應該或不應該擁有的權限。存取級別功能將覆蓋角色或其他外掛設置的權限。
⚙️ 隱藏小工具區和導航菜單
從未選擇等級的用戶完全隱藏導航菜單項目或使用 Content Aware Sidebars 創建的小工具區。
🤖 從其他外掛限制內容
Restrict User Access 自動偵測任何外掛或佈景主題所創建的自訂文章類型和分類法。對於一些最受歡迎的 WordPress 外掛內置支持,這意味著您可以限制對 bbPress 論壇或多語言內容的存取等。
bbPress
BuddyPress
Easy Digital Downloads
qTranslate X
Pods
Polylang
TranslatePress
Transposh Translation Filter
WooCommerce
Weglot
WPML
📑 使用短代码限制內容
通過添加簡單短代碼,微調您的文章或頁面內容的可見度:
[restrict level="platinum"]
此內容只能被白金等級或以上用戶看到。
[/restrict]
[restrict level="!platinum"]
此內容只能被沒有白金等級或以上用戶看到。
[/restrict]
[restrict role="editor,contributor" page="1"]
此內容只能被編輯者和貢獻者看到。
其他用戶將看到 ID 為 1 的分頁內容。
[/restrict]
[login-form]
👋 開發人員友好的 API
Restrict User Access 使開發人員可以輕鬆地通過將幾行代碼添加到佈景主題模板來以編程方式自定義 WordPress 存取控制。
示例 – 為當前用戶添加等級
外掛標籤
開發者團隊
② 後台搜尋「Restrict User Access – Ultimate Membership & Content Protection」→ 直接安裝(推薦)
原文外掛簡介
Restrict User Access is a fast and simple Membership Plugin for WordPress. Restrict your content in minutes, NOT hours.
Quickly set up a paid membership site where your users can get different levels such as Platinum, Gold, or Free. Then, grant those levels when a user purchases a product in WooCommerce.
👥 Unlimited Access Levels
Users can have multiple levels, and you control how long memberships should last. When unauthorized users try to access restricted content, you can redirect them to another URL or display a teaser.
⚡ Level Membership Automations
Automatically add levels to your users based on something they do (Triggers) or something they are (Traits):
User Registration
User Roles
Logged-in or Guests
WooCommerce Purchases
Easy Digital Downloads Purchases
BuddyPress Member Types
GiveWP Donations
🔒 Contextual Content Protection
Prevent unauthorized users from visiting your posts, pages, or categories. You can even combine the conditions: protect all posts tagged “Premium” written by a select author.
The following Access Conditions are available out of the box:
Posts, Pages & Custom Post Types
Content with Tags, Categories, or Custom Taxonomies
Content written by select Authors
Page Templates
Blog Page & Post Type Archives
Author Archives
Taxonomy Archives
Front Page, Search Results, 404 Not Found Page
bbPress Profiles, Forums & Topics
BuddyPress Profile Sections
Languages (Polylang, qTranslate X, TranslatePress, Transposh, Weglot, WPML)
Pods Pages
Note that Access Conditions do not apply to content displayed in lists.
✅ Grant & Deny Capabilities
The easy-to-use WordPress User Manager gives you full control over the capabilities the members should or shouldn’t have. Access Level Capabilities will override the permissions set by roles or other plugins.
👁️ Hide Admin Bar & Nav Menu Visibility
Disable the admin bar for select levels and control what menu items members can see. You can even hide any widget area created with Content Aware Sidebars
🤖 Restrict Content from Other Plugins
Restrict User Access autodetects Custom Post Types and Taxonomies created by any plugin or theme. Built-in support for some of the most popular WordPress plugins means that you e.g. can restrict access to bbPress forums or multilingual content.
bbPress
BuddyPress
Easy Digital Downloads
Pods
Polylang
TranslatePress
WooCommerce
Weglot
WPML
and more …
🛡️ WordPress Security Enhancements
WP REST API Content Protection
Enforces PoLA to minimize attack surfaces and stop threat actors from harvesting your data
How to display content in lists
Display excerpts only or hide content when post types are displayed in blog, archives, search results, lists, etc.
📑 Restrict Content with Shortcodes
Fine-tune content visibility in your posts or pages by adding simple shortcodes:
[restrict level="platinum"]
This content can only be seen by users with Platinum level or above.
[/restrict]
[restrict level="!platinum"]
This content can only be seen by users without Platinum level or above.
[/restrict]
[restrict role="editor,contributor" page="1"]
This content can only be seen by editors and contributors.
Other users will see content from page with ID 1.
[/restrict]
[login-form]
👋 Developer-friendly API
Restrict User Access makes it super easy for developers to programmatically customize WordPress access control by adding a few lines of code to theme templates.
Example – Add level to current user
rua_get_user()->add_level($level_id);
Example – Check if current user has an active level membership
if(rua_get_user()->has_level($level_id)) {
//show restricted content
} else {
//show content if unauthorized
}
View full RUA PHP API documentation here.
🎛️ Premium Add-ons for Restrict User Access
Complete your WordPress membership site with these powerful extensions
ACF Restriction
Restrict content that contain data from Advanced Custom Fields plugin
Date Restriction
Restrict content based on the time it was published
Meta Box Restriction
Restrict content that contain data from Meta Box plugin
Timelock
Determine when to enable or disable select Access Conditions
URL Restriction
Restrict content based on the WordPress URL, with wildcard support
Visibility Control
Hide content from blog, search results, archives, custom lists, WP REST API, and more
