Skip to content

Instantly share code, notes, and snippets.

@teolopez
Created July 31, 2013 14:01
Show Gist options
  • Save teolopez/6122239 to your computer and use it in GitHub Desktop.
Save teolopez/6122239 to your computer and use it in GitHub Desktop.
change error message for incorrect login credentials.
add_filter( 'login_errors', 'rs_custom_login_error' );
/*
* @desc Filter Wordpress admin error message
*/
function rs_custom_login_error(){
return $error = "Oops!, sorry you have inputted wrong credentials.";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment