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://www.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'); 

0 0 vote
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x