Redirect User After Resetting Password in WooCommerce

When a user resets their password in WooCommerce, it will reload the page with a success message. It might be better to redirect them to the My Account page with a success message so they can log straight in. In order to do that, you can add the following code to your theme’s functions.php¬†file.

 

2 Comments

  1. Bigh says:

    Thank you James! The password retrieval process on my site had gotten split between WP, Woo, and my membership plugin, and this snippet was extremely helpful in unifying everything. I had already tried a few other snippets that worked for others, but for whatever reason they didn’t work for me. This one worked perfectly, so thank you again!

Leave a Reply

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