Skip to content

How To Disable Lost Password Feature In WordPress

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:

function disable_reset_lost_password() 
 {
   return false;
 }
add_filter( 'allow_password_reset', 'disable_reset_lost_password');

Now, you may wanna remove the lost password link from the login page as well.

1 thought on “How To Disable Lost Password Feature In WordPress”

Leave a Reply

Your email address will not be published. Required fields are marked *