• Hi guy,

    I am working on a LearnPress website and I am having a problem with the register form. I’d rather take phone numbers instead of emails and make email optional. The problem is that I can’t make email optional and there is no validation for the phone number and users can type anything.

    Could you help me with this?

    best wishes,

    AmirHossein.

Viewing 1 replies (of 1 total)
  • Plugin Support brianvu-tp

    (@briantp)

    Hi AmirHossein,

    Thank you for reaching out.

    To make the email optional and replace it with a phone number, you can customize the registration form by overriding the LearnPress template.

    Here’s what you can do:

    1. Access the code for the registration form by following this link: LearnPress Registration Form Code.
    2. Copy the form-register.php file to your theme directory: wp-content/themes/your-child-theme/learnpress/global/form-register.php.
    3. In the copied file, modify the code to replace the email field with a phone number field and add the necessary validation for the phone number.

    By doing this, you can make the email optional and ensure that the phone number is properly validated.

    Best wishes,
    Brianvu-tp

Viewing 1 replies (of 1 total)

The topic ‘optional email in learnpress register form’ is closed to new replies.