affiliate program How to Hide WordPress Login Error Message? When you type a wrong username or password, WordPress tells you what went wrong. If your username is correct but password is wrong, it will say that password was wrong. If you type wrong username, it says “Invalid Username”. Hackers, the bad guys of the Web, can make use of this bit of information to guess the username and password, and gain access to your WordPress website or blog. For improving the security of your WordPress installation and making the work of hackers difficult, you should hide the login error message. Copy and paste the following code in functions.php file of your WordPress theme. 1 add_filter('login_errors', create_function('$a', "return null;")); To confirm that the code is working, try logging in with a wrong username. You will get an empty error box. affiliate program August 9, 2011 by admin 0 comments 1646 viewson Wordpress Theme Share this post Facebook Twitter Google plus Pinterest Linkedin Mail this article Print this article Tags: How to Hide WordPress Login Error Message? Next: Choose the Right Domain Name for Your Blog Previous: How to Become a Famous Blogger?