Last active
July 28, 2023 03:53
-
-
Save maddisondesigns/be70440f7b1a68798c44900a11802ea2 to your computer and use it in GitHub Desktop.
Change the default WordPress login error message to something less specific
This file contains 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
/** | |
* 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