User must be logged in to view WooCommerce Products without plugin!

Redirect to my account page

Basically, this code tells WooCommerce that if someone is not signed in and visits a WooCommerce page (products, cart, checkout) – then it will redirect them to the my account page to sign up or log in.

Redirect to home page

This redirects user straight to what ever you’ve set the home/front page to be on your website.

Source: User must be logged in to view WooCommerce Products | Web Design 101

Leave a Comment

Your email address will not be published. Required fields are marked *