Allow WooCommerce customers to read private posts/products

Here is a quick snippet to allow WooCommerce users to read/access private posts or private products. Pretty useful when you want to create special offers for some existing customers only. Simply place that snippet in functions.php in your theme folder:


One response to “Allow WooCommerce customers to read private posts/products”

  1. billium99

    Hi Remi – great site! I wanted to let you know – this snippet works to make the private products visible, but is not a complete solution, since people can see the products but cannot buy them. Is there a small tweak to allow these products to also be added to the cart?



Leave a Reply