Custom prevent canceling?
-
Hi,
I’m trying to find a way to prevent an attendee from Canceling, but when within a certain time from the start of the event. I see that once an event starts the user cannot cancel, but we want to prevent a cancel, say, at the 1 hour mark before an event starts.
I looked a bit into hooks that might work for this. I found a post referencing the “em_booking_set_status” hook. I can hook into that, and see that it’s running my code, but there seems to be no way to use that to cancel the cancel. It looks like it’s not actually used until after the cancel is already processed, so I guess I need something that triggers BEFORE the cancel is processed, and will let me stop it, preferably with a message back to the user. Is there a hook that is appropriate for that?
Or, if there is already a setting somewhere that lets me do this, that would be great, but I don’t see anything (this is for recurring events, by the way).
Thanks!
- The topic ‘Custom prevent canceling?’ is closed to new replies.