Skip to content
Smart Web Worker

Smart Web Worker

  • WordPress
    • WordPress Themes
    • WordPress Snippets
    • WordPress Tips
  • Web Design
  • Web Development
  • Fonts
  • General
  • Contact

Hide WordPress login error messages

by Smart Web WorkerPosted onMarch 19, 2012December 19, 2016

WordPress has a few grey areas as far as security is concerned. Hackers often take control of WordPress websites using the log-in error message which tells whether the username and passwords are correct or not. If you get to know the username, it is one step easier to gain unauthorised access. The message that says “Invalid username” helps hackers to find the correct username and password.

For better security of your WordPress website or blog, you might want to hide the log-in error messages that WordPress shows when you try to log in with wrong username and/or password. Paste this code in the functions.php file of your WordPress theme.

add_filter('login_errors', create_function('$a', "return null;"));
Posted in WordPress, WordPress Snippets, WordPress TipsTagged Hide WordPress login error message, WordPress login error, WordPress security

Post navigation

Prev Add default post content in WordPress content editor
Next Display latest Google+ update in WordPress

Search the site…

Recent Posts

  • How to Change WordPress URL in MySQL Database Using phpMyAdmin?
  • 10 Tips to Improve Your Website Performance
  • How much to charge for WordPress maintenance?
  • How to Insert Maps in Website?
  • Best Free Handwriting Fonts

Categories

  • Fonts
  • General
  • Web Design
  • Web Development
  • WordPress
  • WordPress Snippets
  • WordPress Themes
  • WordPress Tips

Smart Web Worker

Smart Web Worker is your resource center for web design and development. We share articles and tutorials for web designers and developers. You will also find web design resources such as WordPress themes, fonts and images.

Quick Links

  • Home
  • About
  • Terms of Use
  • Affiliate Disclaimer
  • Contact
  • Sitemap
2025 © Smart Web Worker ⋅ Web Design Resources & Tutorials