Hide wordpress login page error feedback

September 25, 2009 · Print This Article

Is your blog secure? Normally when you try to login and mess something up, WordPress dishes out a helpful sentence or two either explaining that your username or your password is incorrect. While this is helpful for you and your site’s members, it’s also helpful for anyone trying to do bad things to your site.

Here is a quick tip that you can easily implement to prevent displaying useful message to potential wordpress hackers.

To remove theses error messages, simply open your functions.php file and paste the following code:

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

No more error message now.

Your choice for site templates and wordpress themes


Got something to say?

You must be logged in to post a comment.