eventorganiser_get_the_start
(filter)
Filters the value returned by `eo_get_the_start()`
Parameters
string|\DateTime
|
$formatted_start |
The DateTime object or formatted returned value (as determined by $format)
|
\DateTime
|
$start |
The start date as a DateTime object
|
string
|
$format |
The format the start date should be returned in
|
int
|
$post_id |
Post ID of the event
|
int
|
$occurrence_id |
The occurrence ID
|
Example Usage
add_filter( 'eventorganiser_get_the_start', 'my_callback_function', 10, 5 );
function my_callback_function( $formatted_start, $start, $format, $post_id, $occurrence_id ){
//Change first value and return it
return $formatted_start
};