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.zipReadme
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
- Copy this folder into
wp-content/plugins/woo-products-role-restricted. - Activate Woo Products Role Restricted in WordPress.
- Go to
WooCommerce > Role Restrictions. - Choose the full-access wholesale role and save.
- Go to
Products > Categoriesand edit the categories each role should be allowed to browse. - Edit any product and use the
Role Visibility Overridesbox 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.