How to Remove Login Error Messages – WordPress Security

In my last post, I described about how to select a responsive theme for your WordPress website. Now I am going to tell explain how you can remove login error messages from wordpress login screen and why it is necessary.

When we type wrong user name or password on our wordpress login screen then an error message appears. If password is typed incorrectly, it tells that your password for username “your wordpress username” is incorrect and when username is typed incorrectly the error message appears as shown below:

ghyyu7

So, In one sense these login errors are helpful to us as they conveys us our fault. But if we see the other side, these login errors can be harmful because hackers can misuse this information to hack our wordpress account or website. So, it is very necessary to remove login error messages  for wordpress security.

How to Remove Login Error Messages

The login error messages can be removed by several ways but I’ll tell you the simplest way. To remove login error messages, you have to login to your website’s control panel. After logging in go to wp-content – themes – your wordpress theme and there you see a file named function.php . So, we have to edit this file and put a small code in it.

Before doing this I suggests you to download your current file. After this, right click on the file and click on edit. Now you have to paste the code written below and save the file.

add_filter(‘login_errors’,create_function(‘$a’, “return null;”));

You are done now. When you type a wrong username or password then the login error messages will not appear.

Keep visiting for the latest wordpress updates and if you have any question regarding this you are always welcomed to comment.If you like the post than share this and tell others to increase the wordpress security.

Leave a Reply

Your email address will not be published. Required fields are marked *