/* Redirect Password Reset Link */
function wpflt_disable_password_recovery() {
if (isset( $_GET['action'] )) {
if ( in_array( $_GET['action'], array('lostpassword', 'retrievepassword') ) ) {
wp_redirect( wp_login_url(), 301 );
exit;
}}}
add_action( 'login_init', 'wpflt_disable_password_recovery' );
Add this code to your child theme’s functions.php to completely disable ‘/wp-login.php?action=lostpassword‘ link in WordPress. What this code does is, it will redirect back to Login URL if the password reset link is called.
If you want the password rest link to be redirected to home page, use ‘home_url()‘ instead of ‘wp_login_url()‘