eventorganiser_get_the_occurrences_of
(filter)
Filters the value returned by `eo_get_the_occurrences_of()`
The filtered value is an array of occurrences. Each occurrence is an array with 'start' and 'end' key.
Both of these hold a DateTime object (for the start and end of that occurrence respecitvely).
Parameters
array
|
$occurrences |
All occurrences of this event
|
int
|
$post_id |
Post ID of the event
|
Example Usage
add_filter( 'eventorganiser_get_the_occurrences_of', 'my_callback_function', 10, 2 );
function my_callback_function( $occurrences, $post_id ){
//Change first value and return it
return $occurrences
};