Created
March 10, 2016 09:02
-
-
Save jetchirag/64092d7a46eecb6f8169 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Don't reveal username when password is incorrect but username is correct. | |
function override_login_error(){ | |
return '<strong>ERROR</strong>: Incorrect username or password.'; | |
} | |
add_filter( 'login_errors', 'override_login_error' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment