Custom phone number field verification when submitting the registration form and before creating the user

I use Woocommerce and created a phone field on the registration page called [registration_phone].

I would like to verify that the customer entered the phone number before confirming the registration, because there are those who can bypass this field and just enter the email and register.

So I would like everyone who registers to first verify their phone number field and then confirm the registration.

If he does not enter the phone number, it will return him to the registration page with an error message.

Leave a Comment