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