Last active
December 15, 2015 18:49
-
-
Save szbl/5306696 to your computer and use it in GitHub Desktop.
Obfuscate WordPress login errors.
This file contains hidden or 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
<?php | |
add_filter( 'login_errors', 'szbl_login_errors' ); | |
function szbl_login_errors( $error ) | |
{ | |
return 'The information you entered was incorrect.'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment