Which hooks into ‘AHEE__thank_you_page_registration_details_template__after_registration_details’ at prioirty 10 and specifies 3 arguments are accepted.
Notice nothing is passed to the hook? That’s why $registration isn’t working within your function.
The code within the article you linked to uses ‘AHEE__thank_you_page_registration_details_template__after_registration_table_row’ hook which does pass the registration along, so change:
That hook does pass the registration and then your code should work as expected 🙂
This reply was modified 9 years, 3 months ago by Tony. Reason: Fix formatting
Viewing 1 reply thread
The support post ‘What Am I doing Wrong !!!’ 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.