This website uses cookies to allow us to see how the site is used. If you continue to use this site, we assume that you are okay with this. If you want to use the sites without cookies, please see our privacy policy.

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 code and be nice ^_^

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.