Allow WooCommerce customers to read private posts/products
Posted on
This might be outdated!
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:
Enjoy!
About the author
Related Posts
1 comment
Leave a Reply
You must be logged in to post a comment.
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?
Thanks
Bill