WhatsApp Login and Signup Verification for WordPress: Step-by-Step Setup

If your WordPress site has user accounts, fake or mistyped phone numbers will sooner or later become a problem. The WapFlow OTP plugin verifies phone numbers with a code sent over WhatsApp: on the registration form, on the WooCommerce checkout, on the login screen and during password reset. You do not have to write any code. In this guide we walk through the installation, explain what each setting does and list what to do before you go live.
What You Need Before Starting
- WordPress 6.0 or later and PHP 7.4 or later. For the shop features, WooCommerce 7.0 or later.
- A WapFlow OTP subscription and at least one connected WhatsApp number. Codes are sent from your own number.
- An API key created in the WapFlow panel. We suggest trying a test key (
wfo_test_) first.
A note: WapFlow OTP is not the official WhatsApp Business API. It works through a linked device and does not guarantee delivery, so for important actions keep a second path such as e-mail or SMS.
Step 1: Link the Number and Create a Key
Open the WapFlow OTP page in the WapFlow panel. Link your WhatsApp number with a QR code or a pairing code. Then, in the API keys section, create a test key and a live key. A key is shown only once when it is created, so store it somewhere safe.
Step 2: Install the Plugin
- Download the plugin zip from the WapFlow OTP page or from the WapFlow OTP section of your panel.
- In the WordPress admin go to Plugins, Add New, Upload Plugin and choose the zip file.
- When the upload finishes, press "Activate".
Step 3: Enter the Key and Test the Connection
Open Settings, WapFlow OTP. Paste your test key into the "API key" field and save. Then press "Test connection". If it works you will see your plan, the codes used in this period and the connected WhatsApp numbers. If no number is connected, the plugin shows a warning. The key is stored on your server as a separate option, appears masked on the settings screen (wfo_live_...1234) and is never sent to visitors' browsers.
Step 4: Choose Where Verification Is Required
The plugin offers verification in four places; switch on the ones you need:
| Area | What it does |
|---|---|
| WordPress registration form | Adds a phone field; registration cannot finish until the phone is verified. The number is saved on the user. |
| WooCommerce checkout | Verifies the billing phone before the order is placed. Works on the classic checkout and on the Checkout Block. |
| WooCommerce My Account registration form | Applies the same verification to shop sign-ups. |
| Login and password reset | Login with phone plus WhatsApp code, and password reset with a WhatsApp code. |
On the WooCommerce checkout, the "Who must verify" setting lets you pick everyone, only guests or only new customers. The "Only for cash on delivery orders" box is the most effective setting against fake COD orders; we cover it in our cash on delivery guide.
Step 5: Set Up Login With WhatsApp
If you turn on "Allow login with phone + WhatsApp code", you can place the [wapflow_otp_login] shortcode on any page to get a passwordless login form. Optionally a "Log in with WhatsApp" button is also added to wp-login.php and the WooCommerce login form. Three security rules matter here:
- Only accounts whose phone was verified through this plugin can sign in this way.
- Error messages never reveal whether a number is registered.
- Administrators are excluded by default. We recommend leaving this as is, so that a hijacked WhatsApp number is never enough to take over the site.
The "Do not allow the same phone number on more than one account" option is recommended; for phone login to work safely, each verified number must belong to exactly one account. If password reset is enabled, the user types the number saved on their account, enters the code that arrives on WhatsApp, and WordPress's own "choose a new password" screen opens.
Step 6: Tune the Message and the Code
- Name shown in the message: Your site title by default.
- Message language: Automatic (site language) or a language you pick.
- Code length: 4 to 8 digits.
- Code validity: 60 to 900 seconds.
- Default country code: Used for numbers typed without a country code; 90 for Turkey.
Step 7: Try It With the Test Key, Then Go Live
A test key sends no WhatsApp message and uses no quota. The code is shown to administrators only (in the verification box and in the browser console), so you can try the whole flow safely. Test registration, checkout, login and password reset in turn. If everything works, enter the live key. Remember: if you open the shop to customers before switching to the live key, nobody will receive a code.
Common Problems
- "The API key format is not valid" warning: The key must start with
wfo_live_orwfo_test_; make sure no space slipped in at the start or end when you copied it. - "No WhatsApp number is connected": Connect your number in the WapFlow panel and check that it is enabled.
- "Subscription expired" or a quota message: Renew the subscription or upgrade the plan. Once the monthly quota is used up, no new codes can be sent.
- The verification box does not appear on the Checkout Block: Check that the phone field is switched on in the checkout form. The box is added to the page with JavaScript; if a theme or another plugin changes the markup heavily, its position may need adjusting.
- A customer says "the code is not arriving": They may not have WhatsApp or may have mistyped the number. Put your contact details somewhere visible for such cases.
Security and Privacy Notes
- The server, not the browser, makes the verification decision. The verified phone is kept in a short-lived, single-use record.
- The plugin applies local rate limits of 10 sends per 10 minutes per IP and 1 per minute and 5 per hour per phone. The WapFlow service's own limits apply on top. For public registration forms, you can hook your CAPTCHA plugin into the
wapflow_otp_before_sendfilter. - On your site the plugin stores short-lived verification state, a
wapflow_otp_sidcookie that lasts two hours, and the verified number in the user's profile. Mention phone verification in your privacy policy. - Only the phone number, the code and the request details go to WapFlow; your names, e-mail addresses, orders and passwords are not sent.
- To lower the ban risk of the sending number, read about account warm-up and daily limits before you start sending.
Frequently Asked Questions
Can my existing members log in with WhatsApp?
Only those whose phone number was verified through the plugin. If an existing member's number is verified, for example during a verified checkout while logged in, that account can use the method too.
What if the code does not arrive?
The user can request the code again after a 60-second countdown. If the problem continues, the number may not have WhatsApp, or your connected number may be offline. Check the connection in the panel.
Is the plugin available in Turkish?
Yes. A Turkish translation ships with the plugin, and the plugin is fully translatable.
Can I use more than one number at the same time?
Yes, up to the number of accounts in your plan. Sends are distributed across the numbers in turn, and if one cannot send, the next is tried. See the pricing page for plans.
What if I want to use the API myself?
The plugin is only for WordPress. For your own application, see the API integration guide and the API documentation.


