Title: Adding custom function when sending booking?
Last modified: January 19, 2017

---

# Adding custom function when sending booking?

 *  Resolved [L18](https://wordpress.org/support/users/l18/)
 * (@l18)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/adding-custom-function-when-sending-booking/)
 * Hello all!
    I’m trying to develop a custom function which should send ticket 
   information to another site when user pushes the “send booking” -button(or whatever
   it says, i’m not using it in english). First I thought I could use some action
   hook to do that, but I couldn’t find the place where the actual magic happens,
   aka when the user presses the button. Function should also add a line to the 
   booking email which goes to admin, based on the information returned by the other
   site.
 * Do you think this is even possible to do what I’m trying to explain?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/adding-custom-function-when-sending-booking/#post-8678315)
 * you can try to hook into em_booking_save filter located under events-manager/
   classes/em-booking.php
 *  Thread Starter [L18](https://wordpress.org/support/users/l18/)
 * (@l18)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/adding-custom-function-when-sending-booking/#post-8678602)
 * Thank you!
    That is exactly what I was looking for! 🙂 I can’t believe I missed
   that before, when I was browsing through the files…

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Adding custom function when sending booking?’ is closed to new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=3550347)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [L18](https://wordpress.org/support/users/l18/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/adding-custom-function-when-sending-booking/#post-8678602)
 * Status: resolved