Posted: April 18, 2024 at 6:10 am
I’m trying to add some custom code to the Thank You screen, but i’m struggling to find a way to get the data i need. At the end of a booking, i’m using a custom page-thank-you.php page which has: What i would like to be able to do is also gather some information about the booked event(s) so i can add some pertinent information. Specifically i’d like to be able to detect the Event Venue values of the booked events so i can show some information relevant to the particular venue(s) taht have been booked. Is there a function or hook of some kind i can use to grab those details here? |
|
Hi there, We have a bunch of hooks running on the thank you page output, it depends on where you want to output the data: ### Filters: * ### Actions: * The majority of those action hooks are passed the EE_Transaction object, for example
Use the transaction object to pull in the registrations:
From there you’ll have an array of EE_Registration objects. Every registration could be from a different event if using Multi Event Registration, so what you do from that point depends on your specific use case but that should get you most of the way. |
|
You must be logged in to reply to this support post. Sign In or Register for an Account