Support

Home Forums Event Espresso Premium Added attendee hook

Added attendee hook

Posted: May 27, 2021 at 4:58 pm

Viewing 1 reply thread


wayne

May 27, 2021 at 4:58 pm

Hi All, im looking for a direction on, if and how to achieve the following.
Currently, I have set up hourly events for parents to book for their children. I have set up the questions based on other support posts which is all working really well! The 1-hour session has equipment on site that stores stats etc which can be accessed by an API. Currently, I was syncing accounts by sending info to the external API on registration (all good), however, if a parent adds one or more child attendees then I need to set up multiple accounts via the API. The idea here is that the child/parent can view their performances.

1: Would it be better to use WordPress user integration and create new users for each child (im using the parent’s email address) I think these may have some access issues.
2: I assume there is some kind of added attendee hook that I can use to send the API a unique childs username made up of the parent’s credentials. I effectively want the parent to login and see their childrens names (linked attendees). I believe each attendee is assigned to a transaction /EE_Registration objects but if a parent buys multiple events over time would each attendee, albeit this could be the same child, be seen as a separate item (i suppose this could be filtered out).

Any pointers would be great – apologies for the poor terminology.

Thanks


Tony

  • Support Staff

May 28, 2021 at 5:30 am

Hi there,

So just to confirm I understand what you are looking for, you need a way to hook into the registration process and call an external API for each registration?

1: Would it be better to use WordPress user integration and create new users for each child (im using the parent’s email address) I think these may have some access issues.

If they are using the same email address, then no.

EE also does not create user accounts for each attendee by default (only the primary registrant), it is possible to do it but needs a snippet to override the default behaviour.

Personally, I don’t think this will help you here.

2: I assume there is some kind of added attendee hook that I can use to send the API a unique childs username made up of the parent’s credentials. I effectively want the parent to login and see their childrens names (linked attendees). I believe each attendee is assigned to a transaction /EE_Registration objects but if a parent buys multiple events over time would each attendee, albeit this could be the same child, be seen as a separate item (i suppose this could be filtered out).

What would be listing the child names?

Are you wanting to pull that information from Event Espresso or the external API?

It sounds like you are going to try and use EE to link the Adult with the Children and display what is essentially a profile for the ‘family’, is that correct? (Note that EE does not store the WP_User ID that created the registrations, so I’m not sure if the above will work if that is what you are trying to do)

Viewing 1 reply thread

The support post ‘Added attendee hook’ 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