I’ve got a plugin I’ve written that hooks into the “AHEE__EE_SPCO_Reg_Step_Finalize_Registration__process_reg_step__completed” action hook with EE4.
The idea of the plugin is that, when an event registration is completed, details about the event and the attendee get sent through to my client’s CRM package via an API.
For some registrations, this works fine. However, not every registration triggers the hook above (or, at least, if it does the code doesn’t run)
I get log files turning up in the folder, but every so often a registration comes through (and the client gets an email confirmation from EE4) but an associated log doesn’t show up in the logs folder.
Am I using the wrong hook? Are there situations where this hook doesn’t fire?
Any help appreciated. Thanks.
This topic was modified 7 years, 4 months ago by Tony. Reason: code formatting
I can recommend opening an issue on Github where it will help if you can post the full code and if at all possible a unit test that demonstrates the issue:
The support post ‘Hook on successful registration – not working every time’ 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.