I’m trying to restrict access to hierarchal, WooCommerce product categories on an individual user basis.
Every plugin seems to tackle this problem with user roles or by manually entering each user in a meta box on each category. Since we have tons of product categories, we want to select the restricted categories under reach user and not under each category.
Ideally, I’d have hierarchal checkboxes for each category on the “Edit User” page. If I select a checkbox, it will hide that category on the site for that specific user. If I check the parent category of sub-categories, it will hide the parent and sub-categories.
​
[Here’s an example I found, but I would need the opposite functionality \(Restrict Categories\) and they would need to be hierarchal]) [ad_2]