How to Add Login with Phone Number via OTP in WordPress
Bear in mind when e-mail and password had been the one solution to log into web sites? Occasions have modified, and now many customers anticipate the comfort of logging in with their cellphone numbers.
After serving to completely different folks arrange phone-based login techniques on their WordPress websites, I’ve realized which strategies work finest – and which of them to keep away from. I’ve examined all the things from premium plugins to customized options to seek out essentially the most dependable choices.
On this information, I’ll share tips on how to add cellphone quantity login with OTP verification to your WordPress website. Whether or not you’re working a small enterprise website or a big membership platform, you’ll discover a resolution that matches your wants.

Why Let WordPress Customers Log in With Their Cellphone Numbers?
Passwords is usually a problem. Folks neglect them, reuse weak ones, or write them down the place others can see them. This isn’t secure, and many individuals have advised me that they need there have been an easier solution to log in to WordPress web sites.
Providing a cellphone quantity login with a one-time passcode (OTP) makes issues simpler. It removes the necessity to remember passwords whereas protecting consumer accounts safe.
Right here is why it is best to contemplate including cellphone login to your WordPress website:
- 🔒 Higher Safety: Passwords could be hacked or stolen. OTPs change each time, making logins safer.
- ⚡ Sooner Signal-Ins: No must sort in lengthy passwords. A fast code despatched to a cellphone lets customers log in immediately.
- ⏳ Fewer Password Resets: Customers not need to reset forgotten passwords, saving you time and help tickets.
- 😊 Improved Person Expertise: A smooth login retains folks blissful and extra more likely to return to your website.
- 📱 Perfect for Cellular Customers: Extra folks browse on their telephones. Letting them log in with a code makes the method seamless.
Now, let’s check out tips on how to simply enable login with cellphone quantity by way of OTP in WordPress.
Add Login with Cellphone Quantity by way of OTP in WordPress
You’ll be able to simply add a cellphone quantity login to WordPress utilizing the free Login with Phone Number plugin.
Nevertheless, since WordPress doesn’t ship SMS messages by default, additionally, you will want a third-party service like Firebase or Twilio to deal with OTP supply. I’ll present you tips on how to set this all up.
First, you have to set up and activate the free Login With Phone Number plugin. For particulars, see this tutorial on how to install a WordPress plugin.
Upon plugin activation, go to the Login Settings » Common web page from the WordPress dashboard and verify the ‘Allow cellphone quantity login’ possibility.
After that, you may add nation codes for all of the areas the place your customers are logging in. By default, the plugin contains the cellphone quantity nation codes for all nations.
I like to recommend leaving this setting as it’s. It ensures that your website stays accessible to a worldwide viewers.

Subsequent, you have to verify the ‘Allow e-mail login’ possibility if you wish to enable e-mail login to your customers.
We advocate this setting when you’ve got present customers who’re used to logging in with their e-mail. By doing so, you’ll make sure that they received’t get annoyed as soon as cellphone quantity login is enabled, as they’ll nonetheless be capable to log in utilizing their e-mail.
You’ll be able to then verify the ‘Drive to get e-mail after cellphone quantity’ possibility. This setting ensures that new customers are required to supply their e-mail tackle earlier than they’ll full registration. It’s particularly helpful if you happen to already have an email list and wish to acquire emails from new customers.
You may as well allow user registration with a cellphone quantity. As soon as that’s carried out, sort the size of the activation code that shall be given to customers.

After that, it’s important to scroll down and discover the ‘Allow Timer’ possibility. Click on to allow it, then set the time restrict for customers to enter the OTP.
For instance, if you happen to set it to 60 seconds, customers could have one minute to enter their code earlier than it expires. Then, click on the ‘Save Adjustments’ button to retailer your settings.

Go forward and change to the ‘Gateway’ tab from the highest. Right here, you could choose an SMS service supplier to your cellphone quantity OTP login.
I shall be selecting Firebase for this tutorial. It’s a Google service that allows you to ship one-time passcodes to customers’ telephones for safe login. Nevertheless, you can too select choices like Twilio, WhatsApp, Alibaba SMS, and extra.
Take into account that among the choices will solely be out there within the Professional plan.

When you select Firebase, you’ll need so as to add its API key and config.
For this, you have to go to the Firebase Console and choose the ‘Create a Firebase Venture’ possibility.

It will take you to a brand new display, the place you could add a undertaking title. You’ll be able to name it something that helps you keep in mind what you’re utilizing it for.
Then, click on the ‘Proceed’ button.

Firebase will now ask permission to enable Google Analytics for the undertaking.
After getting allowed that, you could choose ‘Default Account for Firebase’ from the dropdown menu and click on the ‘Create Venture’ button.

You’ll now be taken to the Venture Overview web page. Right here, navigate to the Construct » Authentication tab from the left column.
Go forward and click on the ‘Get began’ button.

When you try this, some new settings will turn into seen on the display. From right here, select ‘Cellphone’ because the native supplier and toggle the ‘Allow’ change.
It will enable customers to sign up with a cell phone quantity utilizing Firebase SDK cellphone verification. Then, click on the ‘Save’ button.

Now, change to the ‘Settings’ tab and choose the ‘Approved domains’ possibility from the left column.
Right here, it’s important to click on the ‘Add area’ button. It will open a immediate the place you have to add your web site’s domain name.

After that, simply click on the settings icon subsequent to Venture Overview on the high and choose the ‘Venture Settings’ tab.
Then, scroll right down to the ‘Your Apps’ part and choose the online icon.

You’ll now want so as to add a reputation to your app and click on the ‘Register App’ button.
Once you try this, Firebase will generate an SDK for you. This stands for Software program Growth Package, nevertheless it works like an app.

From right here, merely click on the ‘Proceed to Console’ button.
As soon as you’re again on the Venture Overview web page, merely copy the ‘Internet API Key’ and retailer it someplace secure.

Now, scroll right down to the ‘Your Apps’ part the place particulars to your latest app shall be displayed on the display.
Right here, select the ‘Config’ radio button to show your Firebase SDK as config. Merely copy and retailer it someplace secure.

After that, you have to head again to your WordPress dashboard and add the Firebase API key and config into their respective fields within the Login with Cellphone Quantity plugin settings.
Subsequent, click on the ‘Save Adjustments’ button to retailer your settings.

As soon as that’s carried out, open the WordPress web page the place you wish to add the login kind and click on the ‘Add Block’ button.
From the block menu, you have to select the ‘Shortcode’ block and add the next shortcode into it:
[idehweb_lwp]

Lastly, click on the ‘Replace’ or ‘Publish’ button to retailer your settings.
Now, when new customers go to your web site, they are going to be capable to register and log in utilizing their cellphone quantity, whereas present customers can nonetheless log in with their e-mail.

When you’ve set this up, we advocate sending an email to your present customers, encouraging them so as to add their cellphone numbers as quickly as attainable.
They will do that by visiting their profile web page within the WordPress dashboard, scrolling right down to the ‘Private Info’ part, including their cellphone quantity, and clicking Replace Person.
This ensures that even older customers can log in with their cellphone numbers in a while.

Bonus: Add One-Click on Login With Google in WordPress
Whereas logging in with a cellphone quantity and OTP is a safe possibility, some customers choose a fair faster solution to entry their accounts.
Including Google one-click login permits customers to sign up immediately with out typing in a cellphone quantity or ready for an OTP. Bypassing the WordPress login form like this will enhance the consumer expertise, cut back login friction, and improve signups.
It’s particularly helpful for websites with frequent guests, similar to membership platforms, on-line shops, or communities.

You’ll be able to simply add this function utilizing the Nextend Social Login plugin. It lets customers log in with their Google account and even helps Fb and Twitter logins.
Nextend additionally means that you can hyperlink social profiles to present accounts, so returning customers don’t create duplicates.

To get began, simply see our tutorial on how to add one-click login with Google in WordPress.
I hope this text helped you discover ways to add login with cellphone quantity by way of OTP in WordPress. You might also wish to see our newbie’s information on how to remove the password reset/change option from WordPress and our tutorial on creating a WordPress login popup modal.
In case you favored this text, then please subscribe to our YouTube Channel for WordPress video tutorials. You may as well discover us on Twitter and Facebook.