Skip to content

Instantly share code, notes, and snippets.

@palimadra
Created August 21, 2015 09:15
Show Gist options
  • Save palimadra/d7e7695b9c7f090c11ef to your computer and use it in GitHub Desktop.
Save palimadra/d7e7695b9c7f090c11ef to your computer and use it in GitHub Desktop.
How to create a filter to show a custom error on login
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