WordPress Snippets at WPcustoms

Change the default login error message

If WordPress recognizes the username but not the password it will tell you the password is incorrect leaving your site open to hackers who now know your username. Change that text with this little function.

 * Snippet Name: Change the default login error message
 * Snippet URL: https://wpcustoms.net/snippets/change-the-default-login-error-message/
  // Change the failed login message for extra WordPress secruity
function wpc_failed_login() {
    return 'Incorrect login information.';
add_filter('login_errors', 'wpc_failed_login');