How do I hide WooCommerce products with a given attribute based on user role?

  php, woocommerce, wordpress

I have a "Wholesaler" user. I am looking for a way to hide products with a given attribute "nonwh".

Source: Ask PHP

LEAVE A COMMENT