Redirect after submission of form on lost password
-
The form of reset password via email will redirect to
lost-password/?reset-link-sent=true
after submission with a message of;Password reset email has been sent. A password reset email has been sent to the email address on file for your account, but may take several minutes to show up in your inbox. Please wait at least 10 minutes before attempting another reset.
Instead of that, I would like to redirect into the specific page I created. How can I do that?
I tried the following but it doesn’t work.
function woocommerce_new_pass_redirect($user) { wp_redirect(home_url().'/password-recovery-confirmation'); exit; } add_action( 'woocommerce_customer_reset_password', 'woocommerce_new_pass_redirect' );
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Redirect after submission of form on lost password’ is closed to new replies.