The ticket link will only show if the registration has been ‘Approved’, so start by double checking the registration is Approved and not another status.
Your closure isn’t being passed $transaction so at this point if ( $transaction instanceof EE_Transaction )…. $transaction is undefined in that function and therefore cannot be an instance of EE_Transation so nothing runs.
The AHEE__thank_you_page_overview_template__content hook is passed the transaction and therefor you need:
The support post ‘Ticket Link on Thank You page’ 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.