Support

Home Forums Event Espresso Premium Restrict Registrant's email address

Restrict Registrant's email address

Posted: September 7, 2017 at 9:14 am

Viewing 3 reply threads


Erica Vandiver

September 7, 2017 at 9:14 am

Hello, we are trying to find a way to verify our registrants (college students) identities, and the best I have come up with is to require that their email address be their college provided emails. We have a single domain (@stlcc.edu), so I was thinking I could restrict emails as advised in https://eventespresso.com/topic/ee3-limit-registrants-email-address/

Since that conversation pertained to EE3, would I use something very different to accomplish this task in EE4? If you know of a better or easier way to accomplish the same goal, I’m all ears!


Josh

  • Support Staff

September 7, 2017 at 9:43 am

Hi Kris,

You can use the WordPress is_email filter hook to perform custom email validation. There’s some example code in this gist that shows an example of how to use the filter hook:

https://gist.github.com/joshfeck/c3236ca17bfe3df5b3e5340183eb56c6

You can add the above to a functions plugin. The above filter function will be applied if you have the “Email Validation Level” option set to “WordPress Default” in Event Espresso > Registration Form > Reg Form Settings.


Erica Vandiver

September 7, 2017 at 9:53 am

Thanks! Would this apply to all events, or can I exclude some?


Josh

  • Support Staff

September 7, 2017 at 10:01 am

It will apply to all events.

Viewing 3 reply threads

The support post ‘Restrict Registrant's email address’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso