Skip to content

Instantly share code, notes, and snippets.

@jetchirag
Created March 10, 2016 09:02
Show Gist options
  • Save jetchirag/64092d7a46eecb6f8169 to your computer and use it in GitHub Desktop.
Save jetchirag/64092d7a46eecb6f8169 to your computer and use it in GitHub Desktop.
// 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