Add phone number to register form

Presently, the form only has email option, how can we add phone number field as well. Thereafter, verify both email and phone number to sign up.
For Sign in, a person should be able to sign in with either email and passworor phone number and otp.

Hi,

Yes, it is possible, I recommend using this hook hivepress/v1/forms/user_register. Also, please check these PHP samples: Search · user:hivepress register · GitHub

I believe this will be useful to you.

Where do I use the code?

Hi,

You can add this code using this doc How to add custom code snippets - HivePress Help Center

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.