3

When I activate WooCommerce plugin, the lost your password does not work and can't sent password reset email to users. But when I deactivate WooCommerce, the lost your password link at login page starts working. Is it possible to not use WooCommerce link because it is not working and changes the reset link.

3

I hope think this may work.

Insert this code into php file or php insert plugin, WooCommerce will no longer change password reset link.

function reset_pass_url() {
    $siteURL = get_option('siteurl');
    return "{$siteURL}/wp-login.php?action=lostpassword";
}
add_filter( 'lostpassword_url', 'reset_pass_url', 11, 0 );
  • for those wondering where to add this code I found that adding after line 42 in wp-content/plugins/woocommerce/includes/wc-account-functions.php did the trick. Guess it's a woo commerce bug – sdjuan Feb 21 at 5:51
  • You shouldn't change the plugin code. You'll lose it every update. This code should be added to the functions.php of your theme. – Éric Gélinas Mar 1 at 14:46
0

If you'd like to do this without code, open the WordPress admin and then click "WooCommerce", "Settings", "Advanced". Under "Account Endpoints", delete "lost-password" from the "Lost password" field.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.