Looking to restrict access to WooCommerce product categories?
Looking to limit users to specific products?
WooCommerce Restricted Category Access does that and more.
Look no further! WooCommerce Restricted Category Access lets you limit a shopper’s access to certain product categories based on individual user accounts, or by user roles. Here’s how it works:
By default all customers on your WooComerce site have a role of “Customer”, or possibly “Subscriber” depending on circumstances.
You can rely on those built-in roles, or add new roles to WordPress using a free plugin such as WP Role Manager. Any roles you add are available for use in WordPress and WooCommerce.
With your roles established, visit the configuration page for the WooCommerce Restricted Category Access plugin, select which categories users can access, or define access based on roles – and you’re done.
In working example of how it works for shoppers, user account restrictions are checked first. If category access settings exist for a logged-in user’s account then the restrictions are applied and no checking is performed for the user’s role.
If no user account restrictions exist for the logged-in user then user role restrictions are checked. If role restrictions exist for the user’s role then those restrictions are applied.
If no user account restrictions exist for a logged-in user and no role restrictions exist the logged-in user’s role then no restrictions are applied.
If the user is not logged in then restrictions for non-logged in users are applied if you have defined any.
When a restriction is applied the following with be true:
The affected user will not see blocked categories in WooCommerce Product Categories widget
The affected user will not be able to access block category pages
The affected user will not be able to access individual products that are in blocked categories.
See the screenshots below to view the settings for Users and Roles
Note that this plugin is not currently compatible with the WooCommerce Layered Nav widget
Current version: 3.5.11
We keep all of our software up to date with the latest versions of WooCommerce and WordPress.
If you don't see any recent changes below it's because none have become necessary!
Version 3.5.11 - February 26, 2016
Tweak to ensure the filters do not take affect when navigating the admin area
Version 3.5.10 - October 5, 2015
Suppress PHP warning message
Version 3.5.9 - January 29, 2015
Make sure each user restriction is cleared before saving its new settings
Version 3.5.8 - June 17, 2014
Updated to support only displaying categories on the main shop page ( WooCommerce -> Settings -> Products -> Show Page Display
Version 3.5.7 - May 14, 2014
Return array instead of null
Version 3.5.6 - May 12, 2014
Version 3.5.5 - May 7, 2014
Adding settings tab to allow admins to enable / disable user & role settings.
Version 3.5.4 - April 29, 2014
Fixed array filtering typo
Version 3.5.3 - April 23, 2014
Ensure the category list is emptied before being reloaded
Added support for Related Products, plugin properly filters out restricted items
Version 3.5.2 - April 18, 2014
Fixed a typo
Version 3.5.1 - April 18, 2014
Tweaked array detection
Version 3.5 - April 15, 2014
Major rewrite of the filtering mechanisms. This prevents the plugin from interfering with nav manus.
Version 3.4.8 - March 24, 2014
Updated to help filter related products on single product pages
Version 3.4.7 - March 11, 2014
Fixed tag related query args
Version 3.4.6 - March 5, 2014
Added check for single product pages to ensure they cannot be accessed directly without having been granted access.
Version 3.4.5 - February 14, 2014
WooCommerce 2.1 compatibility
WordPress 3.8.x compatibility
Version 3.4.4 - January 27, 2013
Tweaked query to use proper database prefix
Version 3.4.3 - December 24, 2013
Tweaked query for single products
Version 3.4.2 - December 6, 2013
Fixed condition where searching posts in the admin area might break due to the plugin running a function unnecessarily in the admin area
Version 3.4.1 - October 17, 2013
- Fixed bug introduced in previous version related to variable product attribute selection
Version 3.4 - July 1, 2013
- Added ability to define which categories non-logged in users can see
Version 22.214.171.124 - May 14, 2013
- Added checks to avoid warning messages
Version 3.3.5 - May 8, 2013
- Adjusted parsing for categories so the viewing sub-category pages shows items if the user is allowed to see those products
Version 3.3.4 - February 12, 2013
- Adjusted filters to address search and product tags
Version 3.3.3 - February 10, 2013
- Changed filters for better compatibility across categories, tags, pages, and search
- Added "Select All" and "Unselect All" links for use when configuring restrictions
Version 3.3.2 - February 8, 2013
- Updated to avoid filtering nav menu items
- Initial public release
- Initial testing with WooCommerce
- Various tweaks to the architecture and functionality
- Adjusted to work with product category pages, single product pages, and the stock WooCommerce Product Categories widget