How to Disable WordPress Email Login and Login Error Messages

How to Disable WordPress Email Login and Login Error Messages


HOW TO DISABLE WORDPRESS EMAIL LOGIN AND LOGIN ERROR MESSAGES

In this tutorial, we are going to see about How to Disable WordPress Email Login and Login Error Messages this will help your WordPress website From attacks.

HOW TO DISABLE WORDPRESS EMAIL LOGIN

Recently WordPress 4.5 introduced the Login with E-Mail Feature but this is not a useful feature because if someone knows your Admin E-Mail address Means they try to log-in your WordPress website by using your E-mail address and it make easier to break your website.Here is the solution for you Just add the single code to Disable WordPress Email Login
Disable WordPress Email Login and Login Error Messages
  • Login to your WordPress dashboard
  • Go to Appearance > Editor > Functions.php
  • Add this Below code in functions.php File
1remove_filter( 'authenticate''wp_authenticate_email_password', 20 );
Disable WordPress Email Login and Login Error Messages

HOW TO DISABLE WORDPRESS LOGIN ERROR MESSAGES

This is the Another Major Problem for WordPress users is showing Login Error Messages.Login Pages show the error Messages when we entering the Correct username and wrong password.Check the below image
Disable WordPress Email Login and Login Error Messages
This Message confirms that this your username for your WordPress website and nowadays we need a Privacy and security for Maintaining our WordPress website Here is the Solution for this problem just adding a single line code to hide the WordPress Login Error Messages
1function no_wordpress_errors(){
2return 'Something is wrong!';
3}
4add_filter( 'login_errors''no_wordpress_errors' );
  • You can also add your Custom WordPress Login Error Messages by replacing the Something is wrong 
  • Now Check the Below Image After adding this code
Disable WordPress Email Login and Login Error Messages
  • That’s all Successfully we hide the Wordpress Login Error Messages

QUICK TIP SECURE YOUR WORDPRESS LOGIN

  • Use Strong and secure Passwords
  • use username with symbols
If you Have Any Doubts in this Topic Please Feel free to Comment here our team will help you.

Comments