Support

Home Forums Event Espresso Premium List of filter and action Hooks

List of filter and action Hooks

Posted: January 28, 2018 at 9:04 pm

Viewing 1 reply thread


REAIE

January 28, 2018 at 9:04 pm

I’m looking for a list of EE’s filter and action Hooks. I’ve searched and so far found this repo page however it does not seem comprehensive. I’m currently using add_action( ‘AHEE__before_spco_whats_next_buttons’, ‘record_purchases’); to record a purchase however I need the code to run after the registrations are paid for.


Tony

  • Support Staff

January 29, 2018 at 4:43 am

Hi there,

We don’t currently have a full list of all of the actions available within EE, however they are all prefixed with either AHEE__ (Action Hook Event Espresso) or FHEE__ (Filter Hook Event Espresso) so if you search for either of those strings in a text editor/IDE you’ll find all of our hooks.

If you looking to record a purchase only when its paid you’ll likely want to use a hook on the thank you page, for example:

AHEE__thank_you_page_overview_template__top
AHEE__thank_you_page_overview_template__content
AHEE__thank_you_page_overview_template__bottom

Each of those action hooks is passed the EE_Transaction object which you can use to confirm if payment has been made, there are some details here:

https://github.com/eventespresso/event-espresso-core/blob/master/docs/T–Tutorials/customizing-the-ee-thank-you-page.md

Something to be mindful of is if the user refreshed the thank you page that hook will fire again so you’ll want to accommodate for that in your custom code.

Viewing 1 reply thread

The support post ‘List of filter and action Hooks’ 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