Support

Home Forums Ticketing Add-on Hook into Ticket Creation

Hook into Ticket Creation

Posted: September 5, 2018 at 3:19 am


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.

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.

Support forum for the Ticketing add-on.
Documentation for Ticketing Add-on
http://eventespresso.com/wiki/ticketing-add-on/

Status: closed

Updated by  Josh 2 months, 1 week ago ago

Topic Tags

Tagged: , , ,

Notifications

This topic is: resolved
Do NOT follow this link or you will be banned from the site!
[i]
[i]