Created
March 12, 2019 07:17
-
-
Save feliciaceballos/3c81b0afc5d6e850b6b677529006739f to your computer and use it in GitHub Desktop.
WordPress Login Page Override Error Message
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 | |
//remove <?php when you paste into your functions.php file | |
function login_error_override() | |
{ | |
return 'Incorrect login details.'; | |
} | |
add_filter('login_errors', 'login_error_override'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment