eo_get_event_classes
since 1.6
eo_get_event_classes( $post_id, $occurrence_id )
Returns an array of classes associated with an event. Adds the following classes
eo-event-venue-[venue slug]
- if the event has a venue
eo-event-cat-[category slug]
- for each event category the event belongs to.
eo-event-[future|past|running]
- depending on occurrence
Applies filter eventorganiser_event_classes so you can add/remove classes.
Parameters
int
|
$post_id |
The event (post) ID. Uses current event if empty.
|
int
|
$occurrence_id |
The occurrence ID. Uses current event if empty.
|
Return value
Hooks
Changelog