Skip to content

How to Add OTP Verification to WordPress Registration

Turn on Registration in Texty > OTP to check a new user’s phone before an account is made. The check works on the main WordPress sign-up page and the WooCommerce My Account form.

Texty OTP New User Registration trigger card labeled Verify phone number during signup

Make sure your site lets new users sign up. Texty Pro must have an active license. You also need a working SMS gateway.

Set the code, SMS text, expiry, and resend wait first. See how to customize OTP settings in Texty.

Sign in to your WordPress dashboard. Go to Texty > OTP.

WordPress admin menu with the Texty submenu open and the OTP settings page highlighted

Find the New User Registration trigger. Turn on Registration. Save your changes.

Texty OTP settings page showing code expiry, resend interval, and Verification Triggers with New User Registration selected

This phone check is off by default. New users will not see it until you turn it on.

WooCommerce style registration form with an OTP verification modal showing a 6-digit code sent to the phone number

The phone check works with:

  • The main WordPress sign-up page at wp-login.php?action=register
  • The WooCommerce My Account sign-up form

It does not cover the Dokan vendor sign-up form. Test any custom form before you rely on it. Another plugin may skip the WordPress or WooCommerce flow that Texty checks.

The user enters a phone number with the normal sign-up details. Texty sends a one-time code by SMS. Texty creates the account after the right code is entered.

Texty then saves the verified phone to the user account. It can also fill the WooCommerce billing phone.

Use a new email and a phone you own.

  1. Sign out of WordPress.
  2. Open the sign-up form in a private window.
  3. Enter the account details.
  4. Request the OTP.
  5. Enter one wrong code and confirm that sign-up stays blocked.
  6. Enter the newest valid code.
  7. Finish the sign-up.
  8. Open the new user in WordPress.
  9. Confirm that the phone was saved.

If you use WooCommerce, open the new user or billing details. Check the saved phone there too.

Test both forms if your site uses both. Delete the test account when you are done.

What happenedWhat to check
The OTP field is missingMake sure Registration is on and the form uses a supported flow.
No one can sign upAllow new users in WordPress or WooCommerce.
The code does not arriveTest the gateway and use an international phone format.
The account appears before OTPCheck whether a custom form or social login skips the normal flow.
A valid code failsUse the latest code and make sure it has not expired.
The phone is not savedTest the main form and check for a profile plugin conflict.
Too many attempts are blockedWait for the hourly limit to reset, then run one clean test.

Five wrong tries make the current code fail. Ask for a new code before you try again.

Does Texty OTP work on the WordPress sign-up page?

Section titled “Does Texty OTP work on the WordPress sign-up page?”

Yes. It works on the main WordPress sign-up page and WooCommerce My Account form.

No. The Registration switch does not cover the Dokan vendor sign-up form.

Will it work with a custom sign-up plugin?

Section titled “Will it work with a custom sign-up plugin?”

Not by default. Test the form first. It may need custom work if it replaces the normal sign-up flow.

Texty saves it with the user. It can also fill the WooCommerce billing phone.

Create one test account through each sign-up form on your site. If users can later change their phone, turn on OTP for profile updates.