Change Login Errors message in WordPress - WPTRINITY

Change Login Errors message in WordPress

Login Errors message in WordPress can be used to not guess whether they entered wrong username or password. By hiding login errors in WordPress you can make your login area a bit more secure.

function no_wordpress_errors(){
  return 'Something is wrong!';
}
add_filter( 'login_errors', 'no_wordpress_errors' );