eo_get_next_occurrence_of
since 1.6
eo_get_next_occurrence_of( $post_id )
Returns an array of datetimes (start and end) corresponding to the next occurrence of an event eo_get_next_occurrence() on the other hand returns a formated datetime of the start date.
'Next occurrence' means next occurrence that starts, and so will not be a currently running occurrence. To get
the currently running occurrence use eo_get_current_occurrence_of()
Parameters
int
|
$post_id |
The event (post) ID. Uses current event if empty.
|
Return value
bool|array
|
Array with keys 'start', 'end' and 'occurrence_id', with corresponding datetime objects / occurrence ID or false if there are no future dates.
|
Changelog