I’m using ‘AHEE__EE_Registration_Processor__trigger_registration_update_notifications’ and can currently only get the main attendee’s info. $registration->attendee()->email(); for instance. How do I get the email address, for instance, of attendee 2,3, etc.?
You should be able to get all of the registrations that belong to the same transaction by using the transaction() method that’s available with that $registration object.
Then you can build a query for events in a similar way that the WP User Integration add-on does where it makes a list of all registrations for the current user profile page. You can find some working example code in /EED_WP_Users_Admin.module.php, in the view_registrations_for_contact() method.
Viewing 6 reply threads
The support post ‘Using hook, how do I get all the attendees info?’ 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.