Generic filters
Exact matches only
  • User must be logged in to view WooCommerce Products without plugin!

    13th September 2018

    WooCommerce

    woocommerce category codehaven

    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

    Was this code snippet helpful?