eo_get_current_occurrence_of
since 1.7
eo_get_current_occurrence_of( $post_id )
Returns an array of datetimes (start and end) corresponding to the current occurrence of an event.
If the event has multiple overlapping occurrences currently running, returns the one with the latest start date.
To get the next occurrenceeo_get_next_occurrence_of()
Parameters
int
|
$post_id |
The event (post) ID. Uses current event if empty.
|
Return value
array
|
Array with keys 'start' and 'end', with corresponding datetime objects
|
Changelog