eo_get_event_capacity
Pro
eo_get_event_capacity( $event_id, $occurrence_id )
Gets the total capacity for an event.
This gets the total number of attendees that an event can hold. It sums the amount
of each ticket type. If a cap is set for the event, it takes the minimum of that number
with the cap.
If you are not booking individual dates set the occurrence ID to 0. If are booking
individual dates, specify an occurrence ID to get capacity for that occurrence, otherwise
pass 0 to get the capacity for the entire event series.
Parameters
int
|
$event_id |
The event ID for which to get the capacityu
|
int
|
$occurrence_id |
Occurence ID. Do not set if booking events as series.
|
Return value
int
|
The total number of attendees an event can hold.
|