Events Made Easy Forums How do I … Auto Approve booking by group

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #61828
    501riders
    Participant

    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

    #61830
    Franky
    Keymaster

    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.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.