Created
August 21, 2015 09:15
-
-
Save palimadra/d7e7695b9c7f090c11ef to your computer and use it in GitHub Desktop.
How to create a filter to show a custom error on login
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
add_filter('login_errors','login_error_message'); | |
function login_error_message( $error ){ | |
$error = "Incorrect login information, stay out!"; | |
return $error; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment