Redirect WooComerce to a custom URL after login

If you are sending a URL like: http://site.com/my-account?redirect_to=product-xpto

Open woocommerce/myaccount/form-login.php and add:

<input type=”hidden” name=”redirect” value=”<?= $_GET[‘redirect_to’]; ?>”>

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

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