Disable Login By Email On WordPress

Ever need to disable the login by email functionality on WordPress websites? All you may need is to remove a filter in your WordPress theme’s functions.php file.

Removing login by email on WordPress

To disable the login by email functionality in WordPress, you need to remove a filter in your WordPress theme’s functions.php file.

  1. Navigate to Appearance > Editor > Theme Functions in your WordPress Dashboard;
  2. Add in the code below;
  3. Click Update File to save the changes.
remove_filter( 'authenticate', 'wp_authenticate_email_password', 20 );