Last active
April 11, 2019 06:20
-
-
Save WordPress-Handbuch/42f7be4dcc49e847673bccbc0d23297a to your computer and use it in GitHub Desktop.
Change detailled WordPress login error messages to a generic text for security reasons
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
function wh_hide_login_errors(){ | |
return 'No.'; | |
} | |
add_filter( 'login_errors', 'wh_hide_login_errors' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment