Skip to content

Instantly share code, notes, and snippets.

@maddisondesigns
Last active July 28, 2023 03:53
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 maddisondesigns/be70440f7b1a68798c44900a11802ea2 to your computer and use it in GitHub Desktop.
Save maddisondesigns/be70440f7b1a68798c44900a11802ea2 to your computer and use it in GitHub Desktop.
Change the default WordPress login error message to something less specific
/**
* Change the default Login error message
*/
function mytheme_login_error_msg() {
return 'Your username or password is incorrect.';
}
add_filter( 'login_errors', 'mytheme_login_error_msg' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment