[WordPress] 外掛分享: Role Membership Access for WooCommerce

WordPress 外掛 Role Membership Access for WooCommerce 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Role Membership Access for WooCommerce」是 2026-01-16 上架。
  • 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
  • 上一次更新是 2026-01-17,距離現在已有 40 天。
  • 外掛最低要求 WordPress 6.2 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 8.0 以上。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

jrtwebsolutions |

外掛標籤

roles | membership | woocommerce | access-control | restrict products |

內容簡介

總結:Role Membership Access for WooCommerce 外掛讓您可以基於 WordPress 使用者角色來限制 WooCommerce 產品的可見性、購買、加入購物車、購物車及結帳權限。

1. 這個外掛可以做什麼?
- 使用「允許角色分類」(Products → Categories) 來限制訪問。
- 使用帶有進入模式的「產品允許角色」(Products → Edit Product) 來限制訪問。
- 防止未授權使用者:
- 查看商店/目錄中的受限產品(取決於佈景主題,通過過濾器強化)
- 將受限產品加入購物車
- 購買受限產品
- 如購物車中有受限產品,則無法完成結帳

2. 外掛提供了什麼特性?
- WooCommerce 設置選項卡:WooCommerce → 設置 → WooRole Access
- 每個分類角色限制
- 每個產品角色限制與進入模式(Inherit / Manual / Combine)
- 多個類別衝突策略選項(Union / Intersection / Priority Category)
- 未授權使用者的可選重定向
- 在產品標題上方顯示可靠的內聯通知(支持區塊主題)

問題與答案:
1. 使用 Role Membership Access for WooCommerce 可以做些什麼?
- 使用「允許角色分類」來限制訪問。
- 使用「產品允許角色」並設定進入模式來限制訪問。
- 防止未授權使用者查看受限產品、將受限產品加入購物車、購買受限產品、如果購物車中有受限產品則無法完成結帳。

2. 外掛提供哪些特性?
- WooCommerce 設置選項卡
- 每個分類角色限制
- 每個產品角色限制與進入模式
- 多個類別衝突策略選項
- 未授權使用者的可選重定向
- 在產品標題上方顯示內聯通知。

原文外掛簡介

Role Membership Access for WooCommerce lets you restrict WooCommerce product visibility, purchasing, add-to-cart, cart, and checkout access based on WordPress user roles.
You can:
* Restrict access using Category Allowed Roles (Products → Categories).
* Restrict access using Product Allowed Roles with Access Mode (Products → Edit Product).
* Prevent unauthorized users from:
– Viewing restricted products in the shop/catalog (theme dependent, hardened via filters)
– Adding restricted products to cart
– Purchasing restricted products
– Completing checkout if restricted products are in cart
The plugin provides:
* A WooCommerce Settings tab: WooCommerce → Settings → WooRole Access
* Per-category role restrictions
* Per-product role restrictions with Access Mode (Inherit / Manual / Combine)
* Multi-category conflict strategy options (Union / Intersection / Priority Category)
* Optional redirect for unauthorized users
* A reliable inline notice shown above product title (supports block themes)
Setup / Configuration
Step 1: Configure global plugin settings
Go to:
WooCommerce → Settings → WooRole Access
Available settings:
1. Restriction Message
– The message displayed when a user is blocked.
2. Redirect Unauthorized Users
– If enabled, blocked users will be redirected to the URL below.
3. Redirect URL
– Recommended: My Account page or a custom “Join Membership” page.
4. Multi-Category Strategy
– Determines behavior when a product belongs to multiple restricted categories:
– Union (OR): allowed roles from any restricted category (recommended default)
– Intersection (AND): user must match all restricted categories
– Priority Category: use only the product’s “Primary Category”
5. Default Primary Category (for Priority Strategy)
– Used as a default selection for products when Priority Strategy is enabled.
Step 2: Restrict categories (recommended first)
Go to:
Products → Categories → Add/Edit Category
Set:
Allowed Roles (multi-select)
Behavior:
* If a category has Allowed Roles set, products in that category are restricted depending on their Product Access Mode.
Step 3: Restrict individual products (when needed)
Go to:
Products → Edit Product → Product data → General
Fields:
1. Access Mode
– Inherit from Categories (default)
– Manual Override
– Combine (Manual + Categories)
2. Allowed Roles (Manual)
– Used only for Manual Override or Combine
3. Primary Category (for Priority Strategy)
– Used only when global Multi-Category Strategy = Priority Category
How Access Mode Works
Inherit from Categories
The product uses category Allowed Roles only.
* If no categories have restrictions, product is unrestricted.
Manual Override
The product ignores category restrictions and uses Allowed Roles (Manual) only.
Combine (Manual + Categories)
The product is accessible if the user matches either:
* Product manual roles OR
* Category roles
Multi-Category Strategy (Conflict Handling)
When a product belongs to multiple categories with different Allowed Roles:
1) Union (OR)
– Allowed roles are combined from all restricted categories.
– Prevents accidental lockouts. Recommended for most stores.
2) Intersection (AND)
– Allowed roles are the overlap of restricted category roles.
– Can lock products if categories disagree (use carefully).
3) Priority Category
– Only one category drives access.
– Select a Primary Category in product settings.
– Optionally set a Default Primary Category globally to reduce per-product setup.
Blocking Behavior
If a user is not authorized:
* Product may be hidden from catalog (theme dependent)
* User cannot add to cart
* User cannot proceed with checkout if restricted items are in the cart
* Notice is injected above the product title (block-theme friendly)
* Optional redirect can be enabled
Example: Restrict a Category to Subscriber Only

Go to Products → Categories
Edit the category (example: “Members Only”)
In Allowed Roles, select: subscriber
Save

All products in that category will be restricted based on their Access Mode:
– Inherit: category restriction applies
– Manual: product manual roles apply instead
– Combine: both apply
Example: Restrict a Product to Editor Only

Go to Products → Edit Product
Product Data → General
Access Mode: Manual Override
Allowed Roles (Manual): editor
Save

Result: only users with editor role can view/purchase.
Privacy Policy
Role Membership Access for WooCommerce does not collect, store, or transmit any personal data.
This plugin operates entirely within the WordPress and WooCommerce environment and uses existing user roles and product/category settings to control access.
No data is sent to external servers.
No tracking, analytics, or cookies are added by this plugin.
No personal or sensitive user information is stored outside of WordPress.
If you choose to use optional external links (such as PayPal or Buy Me a Coffee), you will be redirected to third-party services that operate under their own privacy policies.
For questions or concerns, please visit:
https://www.jrtwebsolutions.com

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Role Membership Access for WooCommerce」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0.0 | trunk |

延伸相關外掛(你可能也想知道)

  • Content Control – The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More 》Content Control 是一個輕量而強大的外掛,可以讓您完全掌控網站內容,限制未登錄用戶、特定使用者角色或已登出用戶存取頁面/文章。, 此外,本外掛也可以使用...。
  • Restrict User Access – Ultimate Membership & Content Protection 》Restrict User Access 是一款 WordPress 快速且簡單的會員外掛。幾分鐘內,即可限制您的內容,而非需要幾個小時。, 快速建立有付費等級(如白金、黃金或免費...。
  • Groups 》d plugins easily, Groups is fully object-oriented and implements the standard WordPress coding practices., It adheres to the WordPress Coding Stand...。
  • Menu By User Roles 》總結:, , - "Custom Menu User Roles" 是一個 WordPress 外掛,可根據使用者角色來控制選單項目的可見度。, - 使用者可以針對每個選單項目指定特...。
  • SimpleShop 》SimpleShop WP 外掛可安裝在 WordPress 網站上,版本需為 WP 4.6 或更高版本,或 Mioweb 網站上,, 該網站不包含自己的會員區塊。相容版本的 PHP 為 5.6.20 ...。
  • Groups 404 Redirect 》這個外掛程式將重定向因訪問由Groups所保護的頁面而導致的 404 錯誤。, 重定向設定可在「設定 > Groups 404」中調整:, 訪問被保護的頁面時可重定向至:, , ...。
  • Anonymous Restricted Content 》這個外掛就像你預期的那樣簡單!, 而且現在它支援最新的 WordPress Gutenberg 編輯器!, 只需勾選核取方塊,標記要隱藏的內容,就完成了限制訪問。, 如果匿名...。
  • Geo Blocker – Control Site Access by Region and IP 》總結:Geo Blocker 是一個強大的 WordPress 外掛,讓您可以根據訪客的國家和 IP 來控制訪問權限、追蹤訪問嘗試和查看分析報告,輕鬆保持控制。, , 問題與答案...。
  • Easy Basic Authentication – Add basic auth to site or admin area 》總結:, Easy Basic Authentication 外掛提供了一種簡單的方法,可以在 WordPress 網站上添加基本身份驗證。您可以通過設置自定義的使用者名稱和密碼,為整個...。
  • RoleMaster Suite – User Role Editor for Ecommerce, Membership admin panel 》總結:這個 WordPress 外掛可以根據使用者角色自動隱藏管理員工具列,適用於「訂閱者」和「投稿者」。, 問題與答案:, 1. 這個外掛的功能是什麼?, - 根據使...。
  • Custom Access Roles 》2.0.0版新增功能:使用自訂角色的使用者現在只會看到分配給他們的文章或頁面。我們還精簡了管理介面,讓配置更輕鬆,同時新增了額外的說明,以協助您將正確的...。
  • Simple Password Protect 》總結:Simple Password Protect 提供了一個簡單的方式來保護您整個 WordPress 網站的前端,非常適合開發站點、私人部落格或任何需要基本訪問控制的網站。, , ...。
  • MyASP MemberShip 》總結:MyASP MemberShip Plugin 是專為 MyASP 用戶設計的會員網站創建外掛程式。使用此外掛程式需要訂閱 MyASP,用戶註冊和管理在 MyASP 端進行,不會儲存在 ...。
  • UMich OIDC Login 》這個外掛是為了特定使用情境而設計:你的 WordPress 網站是某個組織的一部分,使用開放式身份驗證 (OpenID Connect,OIDC) 進行網站單一登入以及基於群組的授...。
  • ELU Hide Admin Menu 》ELU 隱藏管理選單外掛可協助您根據使用者角色在 WordPress 管理員區隱藏管理選單及管理工具列項目。只需勾選相對應的選項及使用者角色,然後儲存。您就能為客...。

文章
Filter
Apply Filters
Mastodon