The SMS Alert plugin works with the User Registration plugin to verify a visitor’s mobile number by OTP before the account is created. You can also send SMS to the new user and the admin on registration.
New to the plugin? Start with the WordPress SMS plugin setup guide.
Before you start
- Install and activate User Registration and SMS Alert, then connect your SMS Alert account.
- Keep SMS credits in your account. Every OTP and SMS uses credits.
- On India routes, message text must match an approved DLT template.
Add the phone field to your form
- In the WordPress dashboard, open User Registration and create or edit a form.
- Add a phone field.
- In the field settings, set the field name to billing_phone.
- Mark the field as required and save the form.
- Add the form shortcode to a page and publish it.
The field name must be exactly billing_phone. SMS Alert uses it to send the OTP and to save the user’s number.
Enable OTP verification on registration
- Open the SMS Alert OTP settings.
- Enable OTP for signup or registration.
- Save changes.
This is a site-wide setting, so add the billing_phone field to every User Registration form.
What the visitor sees
- The visitor fills in the form and submits it.
- An OTP is sent to the mobile number and a verification popup opens.
- The visitor enters the code. A resend option follows a timer (15 by default).
- After the code is accepted, the registration completes.
SMS on new registration
- In SMS Alert, open the User Registration tab.
- Enable the customer message for new registration.
- Enable the admin message, and fill Send Admin SMS To in General Settings.
- Save changes.
One account per mobile number
Unless SMS Alert is set to allow multiple users per number, a number that already has an account is rejected with: “An account is already registered with this mobile number. Please login.”
Troubleshooting
Problem or message | What to check |
|---|---|
“Please enter phone number.” | The form has a phone field named billing_phone and it is filled. |
Invalid phone number format | Enter a valid mobile number and check your country code setting. |
“An account is already registered with this mobile number.” | Log in, or use another number. |
“Invalid one time passcode.” | Enter the latest code, or resend after the timer. |
No OTP popup | Signup OTP is enabled, your account is connected and scripts are not blocked or cached. |
OTP not received | Check SMS credits, the number and your approved DLT template. See Template Mismatch Error. |
Frequently asked questions
Can I add OTP verification to a User Registration form?
Yes. With SMS Alert, visitors verify their mobile number by OTP before registration completes.
What should the phone field be named?
billing_phone.
Is the OTP setting separate for each form?
No. It applies across the site, so every form needs the phone field.
Can two users register with the same mobile number?
Only if SMS Alert is set to allow multiple users per number.
Where is the verified number saved?
It is used as the user’s billing phone.
Do I need DLT registration?
On India routes, yes. The OTP message must match an approved template.
Does OTP use SMS credits?
Yes.
