I'm trying to filter the products based on the the type of customer that logs in. Using an attribute in the customer record which filter method would I use to automatically filter certain products from a custom so they cannot see them?
I've come across 'woocommerce_product_filters' in the docs but I'm not sure if this is the correct hook to use.
Any pointers would be a great help