eo_get_next_occurrence
since 1.0.0
eo_get_next_occurrence( $format = 'd-m-Y', $post_id )
Gets the formated date of next occurrence of an event
Examples
Inside the loop, you can output the start date of the next occurrence of the current event.
<?php $next = eo_get_next_occurrence( 'jS M Y' ); ?>
Print the start date of the next occurrence of event with id 7
<?php echo eo_get_next_occurrence( 'jS M Y', 7 ); ?>
Parameters
string
|
$format = 'd-m-Y' |
The format to use, using PHP Date format
|
int
|
$post_id |
The event (post) ID,
|
Return value
string
|
The formatted date or false if no date exists
|
Hooks
Changelog