eo_get_schedule_last
since 1.4.0
eo_get_schedule_last( $format = 'd-m-Y', $post_id )
Returns the formated date of the last occurrence of an event
Examples
Inside the loop, you can output the last start date of event
<?php echo 'This event will run for the last time on ' . eo_get_schedule_last( 'jS M Y' ); ?>
Print the last start date of the event with id 7
<?php echo eo_get_schedule_last( '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. Uses current event if empty.
|
Return value
string
|
The formatted date
|
Hooks
Changelog