Support

Home Forums Ticketing Add-on Hook into Ticket Creation

Hook into Ticket Creation

Posted: September 5, 2018 at 3:19 am

Viewing 1 reply thread


ARAGATO

September 5, 2018 at 3:19 am

I need to do something on creation of a ticket, e.g. someone books a ticket and the EE4 Ticket Addon creates a ticket for that booking. After the ticket creation I need to write the booking details into a local file.

What would be the right hook to start with?


Josh

  • Support Staff

September 5, 2018 at 7:29 am

Hi,

You could use the
AHEE__EE_Single_Page_Checkout__process_attendee_information__end hook. Here’s a link to the source where you’ll find it:

https://github.com/eventespresso/event-espresso-core/blob/master/modules/single_page_checkout/reg_steps/attendee_information/EE_SPCO_Reg_Step_Attendee_Information.class.php#L937

You can use the $valid_data param to get the values from the registration form fields.

Viewing 1 reply thread

The support post ‘Hook into Ticket Creation’ 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