Skip to content

Instantly share code, notes, and snippets.

@WordPress-Handbuch
Last active April 11, 2019 06:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WordPress-Handbuch/42f7be4dcc49e847673bccbc0d23297a to your computer and use it in GitHub Desktop.
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
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