Title: [Plugin: Events Manager] Add/Remove multiple bookings
Last modified: August 22, 2016

---

# [Plugin: Events Manager] Add/Remove multiple bookings

 *  [stefwilliams](https://wordpress.org/support/users/stefwilliams/)
 * (@stefwilliams)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/plugin-events-manager-addremove-multiple-bookings/)
 * This is a compilation of posts I’ve made in the EM Pro support forums – am yet
   to find an answer. Hopefully someone here may have some ideas?
 * I’ve made a form in a Buddypress group which shows booked users for an event,
   and all other members of the group (who are not booked on).
    I’d like to be able
   to quickly add or remove bookings based on selecting the members in question,
   then submitting the form. I’ve got as far as the form, which returns an array
   of users_to_add and users_to-remove, but now am a bit stuck on how to book them/
   remove them properly… Is there a function I can use?, ie, em_add_booking ($event_id,
   $user_id) Having looked through the core code, I haven’t found anything like 
   that, but can you give me some pointers? ============= OK, so I’ve made some 
   progress with this after finding this thread: [https://wordpress.org/support/topic/plugin-events-manager-save-booking](https://wordpress.org/support/topic/plugin-events-manager-save-booking)
   It doesn’t say much but it pointed me in roughly the right direction. I’m now
   creating a new EM_Booking object and doing EM_Booking->save(); which is returning
   1 (ie, success) and is adding a Booking, but it adds 0 spaces and 0 price. I’ve
   tried creating a EM_Ticket_Booking object as suggested in the thread above, but
   not sure how to associate it with the booking object. Any pointers appreciated…

The topic ‘[Plugin: Events Manager] Add/Remove multiple bookings’ is closed to new
replies.

## Tags

 * [add](https://wordpress.org/support/topic-tag/add/)
 * [buddypress.group](https://wordpress.org/support/topic-tag/buddypress-group/)
 * [remove](https://wordpress.org/support/topic-tag/remove/)

 * 0 replies
 * 1 participant
 * Last reply from: [stefwilliams](https://wordpress.org/support/users/stefwilliams/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/plugin-events-manager-addremove-multiple-bookings/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
