Are you trying to disable the login with email address feature in your WordPress website?
Well, we’ve got your back. In this post, we have added a step-by-step guide to disable the login using an email address for WordPress. Actually, we have listed two quick and easy ways to disable the email login feature.
The WordPress 4.5 release enables you to log in to your WordPress website using a registered email. The question is, should you disable the login with email feature or not?
Here’s a quick index to help you navigate this article:
Let’s take a sneak peek into the necessity of disabling the email login feature on WordPress.
Why Should You Disable Login With Email Feature in WordPress?
There are plenty of reasons to disable the email login feature on WordPress. The most common reason is the security of your WordPress website.
Somehow if you have your email and password as a login credential of your WordPress site, it makes it super easy for hackers to break into your WordPress site.
Knowing your email address, hackers can hack someone’s email address and then break your WordPress website’s security to hack it completely.
That’s one of the obvious reasons to disable the login with email feature. When you disable the login with email option, you or users of your website will log in using the username and password only.
If a hacker has the email address somehow, they will not know the username, and that will make it super hard for them to break your website security.
Although WordPress security plugins like Sucuri make it super easy to protect your WordPress website, overall, Sucuri is a one-stop solution for all the security needs of your WordPress website.
What’s more, Sucuri takes responsibility to recover your hacked website, if your website is hacked when the Sucuri plugin is enabled on your website.
With all that being said, let’s get straight to our guide to disable the login with email feature on WordPress.
Step-by-step Guide to Disable the Login With Email Feature in WordPress
Disabling login with email for your WordPress website isn’t so complex nowadays. You can use a plugin like No Login By Email Address to quickly and easily disable the login with email feature.
The No Login By Email Address plugin will instantly remove the option to log in with an email address on your WordPress website.
Users will only be able to login with their username once you activate the plugin. The best part is that this plugin doesn’t require any configuration to disable the login with email feature.
Disabling the Login With Email Feature Using a WordPress Plugin
Step #1: Install the No Login by Email Address Plugin
Navigate to your WordPress dashboard and then to Plugins >> Add New >> Upload Plugin. Now choose the zip file which you have downloaded and then click on the “Install” button.
Step #2: Activate the Plugin
One the plugin is installed, you need to activate the plugin right away.
The best part about the No Login By Email Address plugin is that it works instantly once you activate it. There is no setting up or configuration option to disable the login with email feature.
Just visit your WordPress website’s login screen and use the email address and password to log in.
Wait: You won’t be able to access the WordPress dashboard; you will get an invalid username error on your screen.
What’s more, this plugin will change the label “Username or Email Address” to only “Username“.
This will show only the “Username” option to log in to your WordPress website; users will enter their usernames and passwords to access your WordPress website.
Manually Disabling the Login With Email Feature (Simple Coding)
If you want to disable the login with email feature manually, this section is for you.
As a site owner, if you know little about coding, you might know that functions.php file is the one-stop solution for your WordPress website. It’s the file you will need to add one line of code.
You have the option to edit the functions.php from the WordPress admin panel or the cPanel.
Let’s start with the cPanel process.
First of all, you need to login to the cPanel and simply click on the File Manager option. The File Manager option will enable you to access all of the files related to your WordPress website.
Here you need to locate your WordPress theme’s functions.php file.
Now click on the public_html directory and then navigate to the wp-content folder― no, you will not find all the content related to your WordPress site.
After that, click on the themes folder and then enter the folder of the WordPress theme you’re currently using for your website. Then click on the functions.php file and then select the Edit option.
Once you click on the edit button, a popup window will open up. Here you will get a warning to create a backup of your files right before making any changes or editing anything.
Taking the backup will make sure you can revert your website if something goes wrong. Then click on the “Edit” button, a new popup will open up containing all of the code from the file.
Now you need to copy and paste the following lines of codes right into your functions.php file.
Copy and paste this code:
remove_filter( ‘authenticate’, ‘wp_authenticate_email_password’, 20 );
Right after inserting the code into the functions.php file, click on the “Save Changes” button to finish making the changes.
Once you finish making these changes, if a user tries to log in to your WordPress website, they will see an “Invalid Username” error.
Note: Following this method will not change anything on the login page; users will still see the username or email address option to log in. If a user enters the email address to login, they will see the “Invalid Username” error.
This is our step-by-step guide to disable the login with email feature on WordPress. Following our step-by-step guide, you can easily disable the login with email feature in your WordPress website.
You can choose to install the No Login By Email Address plugin to disable the login with email feature.
What’s more, if you have knowledge of coding, you can follow our manual way of disabling the login with email feature on your WordPress website.
Which way did you choose to disable the email login option? Feel free to share your thoughts in the comment section below.
If this post helped you, share this post on social media channels such as Facebook, Twitter, and LinkedIn.
Other WordPress Tutorial Guides:
- Ultimate WordPress Security Guide
- How to Get Started With WordPress Blog
- How to Install WordPress on Windows
- How to Create the Best WordPress Staging Site
- How to Make WordPress Site Live
- How to Recover a Hacked WordPress Site
- How to Add Custom Fonts to WordPress
- How to Speed Up WordPress Site
- How to Stop Users From Sharing Passwords in WordPress
- How to Add Security Questions to Your WordPress Login Screen
- How to Limit Login Attempts in WordPress