WP Manifestindependent plugin directory
manifest / ecommerce / woo-products-role-restricted

Plygnd Woo Products Role Restricted

Restrict WooCommerce products and categories by user role, including a single-category wholesale tier.

by Anthony Raudino · github.com/anthonyraudino/woo-products-role-restricted

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/anthonyraudino/woo-products-role-restricted/archive/refs/heads/main.zip

Readme

Woo Products Role Restricted

This plugin adds WooCommerce storefront restrictions based on WordPress user roles.

What it does

  • Lets you choose one role that can see all products and categories.
  • Lets you assign allowed roles directly on each WooCommerce product category.
  • Includes child categories automatically, so assigning a role to a parent category opens that whole branch.
  • Lets you open specific individual products to additional roles from the product edit screen.
  • Hides restricted products from shop archives, product category pages, search results, and related products.
  • Blocks direct access to hidden product and category URLs with a 404 response.

Installation

  1. Copy this folder into wp-content/plugins/woo-products-role-restricted.
  2. Activate Woo Products Role Restricted in WordPress.
  3. Go to WooCommerce > Role Restrictions.
  4. Choose the full-access wholesale role and save.
  5. Go to Products > Categories and edit the categories each role should be allowed to browse.
  6. Edit any product and use the Role Visibility Overrides box to make that one product visible to extra roles.

Notes

  • Category permissions are assigned per category, and child categories inherit access from any allowed parent category.
  • Specific products can be made visible to extra roles even when they sit outside the restricted category branch.
  • If a user has both the full-access role and another restricted role, full access wins.
  • WooCommerce must be active for this plugin to run.

Read the full README on GitHub →