Thank you for reporting this, and I agree that the documentation lacks examples.
Do you mean that the user is still able to access the page with the product that contains the category, or simply that the category/product is still being displayed in lists, archives, search results etc.?
If the former, can you provide the access conditions you used for the level?
If the latter, at this point it is unfortunately not possible to hide restricted items from lists out-of-the-box.
Hi, thank’s for your reply.
For example. I have 3 category: cat_1, cat_2 and cat_3. All the website is closed for non authorized users. After login they can see all categories. Is it possible to close cat_2 for some user? That he can see only cat_1 and cat_3? Or close all category except cat_3?
“If the latter, at this point it is unfortunately not possible to hide restricted items from lists out-of-the-box”
So, they will see cat name in cat list, but will not have an access to enter to this category?
> So, they will see cat name in cat list, but will not have an access to enter to this category?
That is correct.
My response here might be useful if you just want to show/hide content in a template based on a given level: https://ww.wp.xz.cn/support/topic/restrict-product-attributes/#post-12125048
If you are only restricting specific posts/pages (ie. not by category), you can use the snippet here to hide those posts from lists/archives: https://github.com/intoxstudio/restrict-user-access/issues/19#issuecomment-370091227 (the API methods used might be slightly outdated)
I hope this helps!