Code to Remove “Lost Your Password?” URL from WordPress Login Page

/* Remove Lost Your Password Link */
function wpflt_remove_lostpassword_url ( $text ) {
         if ($text == 'Lost your password?'){$text = '';}
                return $text;
         }
add_filter( 'gettext', 'wpflt_remove_lostpassword_url' );

Add the above code to your child theme’s functions.php to remove the “Lost your Password?” URL in WordPress Login Page.

WARNING 🙂

Password reset URL can still be accessed with this slug ‘/wp-login.php?action=lostpassword‘. Use this code to remove Password Reset Link in WordPress.