Support

Home Forums Event Espresso Premium Hook/Filter for New Registration or Registration Update

Hook/Filter for New Registration or Registration Update

Posted: February 20, 2019 at 6:58 am

Viewing 1 reply thread


nlctampa

February 20, 2019 at 6:58 am

Hello!

I’m attempting to add functionality that occurs when a new registration is created or the registration is updated.

What hook or filter can I use to do this? I see AHEE__EE_Registration__set_status__after_update, but it does not seem to fire when a registration status is updated from the admin. Do you have examples I can reference of adding functionality to the registration process? IE. I would like to update another table in the database when a registration has been created or is updated (either from front-end or admin) and include in that table the user, registration, and attendee details. Thanks!


Josh

  • Support Staff

February 20, 2019 at 10:41 am

Hi,

I just checked and AHEE__EE_Registration__set_status__after_update does fire when a registration status is updated from the admin. Here’s an example that shows how to use that hook:

add_action('AHEE__EE_Registration__set_status__after_update', 
  function($obj, $old_STS_ID, $new_STS_ID, $context) {
    // your code goes here
  },
  10,
  4
);
Viewing 1 reply thread

The support post ‘Hook/Filter for New Registration or Registration Update’ 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