Remove incorrect WordPress username message during login

Why would you want to remove incorrect WordPress username message during login? Well during login WordPress will notify you if the username or the password is incorrect, if a hacker knows the username they have successfully cracked the login process by 50%. Heres how to remove the message and stop those hackings from finding that information.


function failed_login() {
 return 'The login information you have entered is incorrect.';
}

add_filter('login_errors', 'failed_login');

Now with this in your functions file WordPress will replace the usual message with ‘The login information you have entered is incorrect.’ regardless if they manage to get the username or password correct.

About

A geek who likes to cook with wp ingredients!

Leave a Reply

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