For hackers it gets easy to hack in if they can see what’s the error coming while they try and enter wrong credentials at login screen of WordPress. For security reasons, you might want to hide the login messages. This simple trick will surely help you.

Procedure:

Note: Do take backup of the file you try this.

01. Place the below in your functions.php file:

add_filter('login_errors', create_function('$a', "return null;"));


This concludes this simple and useful tutorial. Hope you like it.