WooCommerce changes lost password reset link

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 );

Leave a Comment