Posted: March 29, 2023 at 11:11 am
Greetings – I have some back-end PHP code that I use to get several of the EE objects after registration submit: // We need to get a few objects from Event Espresso If there is just one registrant I can get at the attendee data like this: // Required data needed for the MAX web services call BUT I am not sure how to get at the data if there are multiple registrants. I thought that the $attendee object would be an array of EE_Attendee objects, but that doesn’t seem to be the case. Can you point me to some code, or show me some code on how to get at the attendee data for multiple registrants? Thanks in advance – Mark |
|
Hi Mark, You’re already getting the info for all registrants with this:
Remove the break and you’ll loop over each registration. You then do something with each registration object within the loop:
|
|
The support post ‘How do I get the data for multiple registrants’ 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.