In last post I showed you how How To Remove Lost Password Link From WordPress Login Page. That snippet will remove the lost password link from the login page, but users will still be able to reset their password by direct accessing to the lost password form link.
In this tutorial, I’ll show you how to disable lost password feature from your WordPress website. You can still reset the password for all other users from the Dashboard.
Just add following snippet to your current theme’s functions.php file:
add_filter( 'allow_password_reset', 'disable_reset_lost_password');
Now, you may wanna remove the lost password link from the login page as well.