eo_get_schedule_start
since 1.0.0
eo_get_schedule_start( $format = 'd-m-Y', $post_id )
Returns the formated date of first occurrence of an event
Examples
Inside the loop, you can output the first start date of event
<?php echo 'This event will first start on ' . eo_get_schedule_start( 'jS M Y' ); ?>
Print the first start date of the event with id 7
<?php echo eo_get_schedule_start( '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