- This topic has 1 reply, 2 voices, and was last updated 4 years, 1 month ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- The forum ‘How do I …’ is closed to new topics and replies.
Events Made Easy › Forums › How do I … › Auto Approve booking by group
If there is a way to do this, I haven’t seen it, so please direct me.
My site has 2 tiers of memberships, sorted into eme groups. Lets just call them bosses and workers.
I’d like for any time a boss makes a booking, the system auto approves it. However, when a worker logs makes a booking, the normal behavior is followed.
Cheers
You can use rsvp action hooks for that: https://www.e-dynamics.be/wordpress/category/documentation/12-hooks-and-filters/
Use e.g. eme_insert_rsvp_action and look at the hints below the list of hooks to get the person or member based on the booking. Based on your evaluation, you can then call
eme_approve_booking($booking_id)
to approve a booking.