Restrict (hierarchal) categories based on individual users (not user roles) by selecting the categories on the “edit user” page?

[ad_1]

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]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer