Allow WooCommerce customers to read private posts/products

Remi | December 29, 2014 | in Tutorials

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:


The author

About the author Remi: Hey! My name is RĂ©mi Corson, i'm a WordPress Expert Developer, i create high level themes and plugins, and i provide free stuff every week on this website!

One comment

  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