WP Manifestindependent plugin directory
manifest / ecommerce / mbm-role-gated-products

Role-Gated Products for WooCommerce

Restrict WooCommerce product visibility and purchasing by WordPress user role.

★ 0stars
4release downloads
v1.1.0latest · 3mo ago

Install

Download mbm-role-gated-products.zip From the v1.1.0 release on GitHub, Aug 5, 2026

Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/blissguy/mbm-role-gated-products/releases/download/v1.1.0/mbm-role-gated-products.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Restrict WooCommerce product visibility and purchasing by WordPress user role.

What It Does

  • Adds per-product controls for role-gated access.
  • Hides restricted products from WooCommerce archives, WordPress search, Bricks query loops, related products, upsells, and cross-sells.
  • Adds a Bricks query-loop checkbox for loops that should include restricted products for approved viewers.
  • Blocks direct product URLs with a 404 by default or an optional redirect.
  • Blocks classic add-to-cart and WooCommerce Store API add-to-cart requests.
  • Removes restricted items from the cart if access changes after an item was added.
  • Lets shop managers and admins keep access for editing and previewing products.

Setup

  1. Activate WooCommerce.
  2. Activate this plugin.
  3. Go to WooCommerce > Role-Gated Products.
  4. Choose the default approved role. If an artist role exists, it is selected by default.
  5. Edit a WooCommerce product, enable Restrict by role, and choose the approved roles.

Bricks Query Loops

Restricted products are hidden from Bricks query loops by default, even for approved users. This keeps general product grids clean.

For a loop that should intentionally show restricted products, enable Show restricted products in that element's Query controls. With that enabled, restricted products still only appear for viewers whose role is approved on the product.

Settings

  • Default approved role: preselects a role on products that have not saved access settings yet.
  • Blocked product page behavior: returns a 404 by default, or redirects to a configured URL.
  • Blocked add-to-cart message: shown when an unauthorized user tries to add a restricted product.
  • Cart removal message: shown when a restricted product is removed from the cart.
  • Admin banner: shows shop managers a front-end banner on restricted product pages.
  • Products table column: shows an Access column on the Products admin screen.
  • Clear restricted product cache: deletes the cached list of restricted product IDs.

Notes

Access is enforced server-side. Product URLs, labels, and UI visibility are not used as the security mechanism.

Releases

4 releases. Each count is every asset in that release; expand a row for the breakdown.

Tag
Published
Assets
Downloads
v1.1.0 latest
Aug 5, 2026 3mo ago
mbm-role-gated-products.zip
1
Jun 1, 2026 5mo ago
mbm-role-gated-products.zip
1
May 31, 2026 5mo ago
mbm-role-gated-products.zip
1
May 30, 2026 5mo ago
mbm-role-gated-products.zip
1