eventorganiser_get_next_occurrence
(filter)
Filters the value returned by `eo_get_next_occurrence()`
Parameters
string|\DateTime
|
$formatted_date |
The DateTime object or formatted returned value (as determined by $format)
|
\DateTime
|
$next |
The next date 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_next_occurrence', 'my_callback_function', 10, 4 );
function my_callback_function( $formatted_date, $next, $format, $post_id ){
//Change first value and return it
return $formatted_date
};