Dependent Events
ProRequires Events Manager Pro. Compare plans
A dependent event is one that can only be booked by people who already have a booking for another event. Use it for a course that requires an introductory session, an after-party open only to conference attendees, or an add-on excursion for people registered for the main event.
You set the requirement on the event that is restricted, by naming the one event that must be booked first.
The feature is on by default. If you don't see Dependent Events in an event's Bookings/Registration box, go to Events then Settings then Bookings then Dependent Events and set Enable Dependent Events? to Yes.
Require another event to be booked first
-
Find the ID of the event that must be booked first (the required event). Go to Events then Events, open Screen Options at the top of the page and tick Event ID. The list then shows each event's ID in its own column.
-
Open the event you want to restrict and scroll to the Bookings/Registration box. Bookings must be enabled for the event.
-
Under Dependent Events, type the required event's ID into Event ID.
The requirement is set on the event being restricted, not on the event that must be booked first.
-
Save the event.
To remove the requirement, clear the field and save.
An event can depend on one other event. To build a chain (session 3 needs session 2, which needs session 1), set each event to depend on the one before it.
What visitors see
A visitor who is logged in and has an Approved booking for the required event sees the booking form as usual.
Everyone else sees a message in place of the booking form. The default messages are below. #_EVENTLINK becomes a link to the required event, so the visitor can go and book it.
| Visitor | Default message |
|---|---|
| Logged in, without an approved booking for the required event | You must have previously booked '#_EVENTLINK' in order to attend this event. |
| Not logged in | You must have previously booked '#_EVENTLINK' in order to attend this event. Please log in so we can verify your previous bookings. |
You can reword both in Events then Settings then Bookings then Dependent Events, in the fields Dependent Booking Required and Dependent Booking Required (Guests). Any event placeholder used there refers to the required event.
The same check runs again when a booking is submitted, so the rule can't be bypassed by posting the form directly.
Rules to know
- Only approved bookings count. A booking for the required event that is Pending, Awaiting Payment, Cancelled or Rejected does not open the dependent event. If your site approves bookings by hand, attendees can book the dependent event only after you approve the first one.
- Visitors must be logged in. The check looks up bookings by user account, so a guest can't book a dependent event, even if they booked the required event with the same email address. This also means the feature doesn't suit sites in No-User Booking Mode, where bookings are not attached to accounts.
- Past bookings count. The required event can be over. A booking for it still qualifies.
- Recurring events. A requirement set on a recurring event applies to each of its dates.
- Manual bookings are checked too. When you add a booking in wp-admin, the check runs against your own account, not the attendee's. If it blocks you, clear the event's Event ID field, add the booking, and put the ID back.
With Multiple Bookings Mode
In Multiple Bookings Mode a visitor can book both events in one order. The dependent event opens as soon as the required event is in the visitor's cart, and this works for guests as well as logged-in visitors. At checkout each booking in the cart is validated again, so removing the required event from the cart blocks the order until the dependent event is removed too.
Troubleshooting
An attendee has booked the required event but still can't book
Check three things: that they are logged in with the account that made the first booking, that the first booking's status is Approved, and that the Event ID you entered is the Events Manager event ID from the Event ID column, not the post ID shown in the editor's address bar.
The Dependent Events option is missing from the event editor
Set Enable Dependent Events? to Yes in Events then Settings then Bookings then Dependent Events. The option is part of the Bookings/Registration box, so the event also needs Enable registration for this event ticked.