Support

Home Forums Pre-Sales Hooks in EE4

Hooks in EE4

Posted: August 27, 2015 at 5:56 am


craig williams

August 27, 2015 at 5:56 am

Hi
I am putting together a POC for a client using Event Espresso Decaf. We will move to the full version if the POC is successful. What I need to do is identify the hooks that will allow me to do the following 3 things:
1) When a attendee registers successfully – do a service call to a CRM to check if the person already exist and update details or create a new record.
2) When a transaction is successfully completed – do service call to create a invoice in their back end system.
3) When a refund is successfully processed – do a service call to create a credit note in their back end system.
I found some mention of the hooks to use for similar scenarios, but they all appear to be for EE3, they don’t have the AHEE prefix. Can someone please point me in the right direction for EE4 so I can identify the correct hooks to use? I have looked through the code in a IDE, but I am battling to identify the correct ones.
Thanks
Craig


Dean

August 28, 2015 at 5:30 am

Hi,

1) Most likely this one AHEE__EE_Registration_Processor__trigger_registration_update_notifications

found in /wp-content/plugins/event-espresso-core-reg/core/business/EE_Registration_Processor.class.php

2) This one AHEE__EE_Payment_Processor__update_txn_based_on_payment__successful

/wp-content/plugins/event-espresso-core-reg/core/EE_Payment_Processor.core.php

3) EE does not handle refunds directly, so the transaction status will need to be changed via the admin, so this should cover it (with an appropriate function to check status) AHEE__EE_Transaction_Processor__manually_update_registration_statuses

/wp-content/plugins/event-espresso-core-reg/core/business/EE_Transaction_Processor.class.php

The support post ‘Hooks in EE4’ 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.

Event Espresso