wordpress snippets

Remove WordPress Login Errors

Last modified: August 27, 2018

It’s a good idea not to let hackers know if they got your username or password wrong. Instead – show them a general message.

Add this to your functions.php file.

function no_wordpress_errors(){
  return 'Wrong information - please try again';
}
add_filter( 'login_errors', 'no_wordpress_errors' );
add_filter( 'auto_update_plugin', '__return_true' );

 

Save 4 Later
Email these links to yourself