In our case, all our events are tied to our users, and once they are registered, they should not be able to register again. I would like to give them a message that says they are already registered if they try to register again for that event. What hook could I use to accomplish this? Thank you!
The FHEE__EE_SPCO_Reg_Step_Attendee_Information___process_registrations__pre_registration_process hook was added for to allow this sort of functionality to be added with a plugin.
I think I should have said “need filter”. I’m guessing someone hasn’t already done this. Is there a sample where someone else has used this hook that I can look at? I will give it a shot but I haven’t done one of these on my own before. Thanks!
The EE4 User Integration add-on uses the filter hook Josh provided to check for a current user based on the email address provided during the registration.
You can take a look within EED_WP_Users_SPCO.module.php at the verify_user_access() method for an example of how to use that hook.
Viewing 3 reply threads
The support post ‘Need a hook to tell if someone already registered for an event’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.