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.
1 answers
1
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.
- Navigate to Appearance > Editor > Theme Functions in your WordPress Dashboard;
- Add in the code below;
- Click Update File to save the changes.
remove_filter( 'authenticate', 'wp_authenticate_email_password', 20 );
— Support WizardAnswer 1