• Resolved mirgcire

    (@mirgcire)


    My customers are students signing up for classes.

    I need to record record the booking in order to provide student access to online class materials. Specifically, I would like to add the recurring-event ID to the students metadata.

    I can see that a record of the student and event is made in the admin bookings table. Is there anyway to hook or filter that action, so I read the data being added to the table?

    Thanks!

    https://www.ads-software.com/plugins/events-manager/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter mirgcire

    (@mirgcire)

    After snooping around a bit in the plugin, it seems like the em_booking_save filter hook is perfect for this purpose.

    Am I correct in assuming that this will fire every time a booking is recorded? And the object that it returns is EM_Booking so it will have pretty much all the information I would ever want? Including pending, confirmed, etc?

    Thanks!

    Plugin Support angelo_nwl

    (@angelo_nwl)

    yes, you can try to hook into em_booking_save filter – you can see the reference at classes/em_booking.php

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to record booking in user metadata?’ is closed to new replies.