설명
Product Roles Manager for WooCommerce allows you to control which products are visible to specific user roles. Perfect for wholesale stores, membership sites, or any WooCommerce store that needs role-based product access.
Features
- Restrict simple products to specific user roles
- Restrict product variations individually by user role
- Works with WooCommerce product queries, widgets, and shortcodes
- Compatible with WooCommerce Blocks and REST API
- Automatically hides restricted products from related products, upsells, and cross-sells
- Redirects unauthorized users to 404 when accessing restricted products directly
- Settings page with import/export functionality
- Lightweight and performance-optimized with caching
Use Cases
- Wholesale Stores – Show wholesale-only products to users with a wholesale role
- Membership Sites – Display exclusive products to premium members only
- B2B Stores – Restrict certain products to registered business customers
- Staff Discounts – Show staff-only products to employees
Configuration
Simple Products
- Go to Products then Edit Product
- Scroll to the Product Data section
- In the General tab, find Product Visibility by Role
- Select the user roles that should see this product
- Leave empty to show the product to all users
Variable Products
- Go to Products then Edit Product
- Navigate to the Variations tab
- Expand any variation
- Find Variation Visibility by Role
- Select the user roles that should see this variation
- Leave empty to show the variation to all users
Plugin Settings
Navigate to WooCommerce then Product Roles Manager to access:
- Global settings configuration
- Export settings to JSON file
- Import settings from JSON file
- Delete all plugin data
스크린샷



설치
- Upload the plugin folder to the /wp-content/plugins/ directory
- Activate the plugin through the Plugins menu in WordPress
- Ensure WooCommerce is installed and activated
- Edit any product and find the Product Visibility by Role settings in the General tab
FAQ
-
Does this plugin require WooCommerce?
-
Yes, WooCommerce must be installed and activated for this plugin to work. An admin notice will appear if WooCommerce is not detected.
-
What happens when a restricted product is accessed directly via URL?
-
The plugin redirects unauthorized users to a 404 page when they try to access a product they do not have permission to view.
-
Can I restrict individual variations differently?
-
Yes, each variation can have its own role restrictions independent of other variations or the parent product.
-
Does this work with WooCommerce Blocks?
-
Yes, the plugin is fully compatible with WooCommerce Blocks including the Products block, Product Collection block, and other product-related blocks.
-
Will restricted products appear in search results?
-
No, restricted products are filtered from all WooCommerce queries including search results, category pages, and shop pages.
-
How do I show a product to all users?
-
Simply leave the role selection empty. When no roles are selected, the product is visible to everyone including guests.
-
Does this affect the REST API?
-
Yes, the plugin filters products in WooCommerce REST API responses based on the authenticated user role.
후기
기여자 & 개발자
“Product Roles Manager for WooCommerce”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.
기여자변경이력
1.0.1
- Confirms compatibility with WordPress 7.0.
1.0.0
- Initial release
- Simple product role restrictions
- Variable product variation role restrictions
- WooCommerce Blocks compatibility
- REST API filtering
- Settings page with import/export
- Performance caching
