eventorganiser_get_the_end
(filter)
Filters the value returned by `eo_get_the_end()`
Parameters
string|\DateTime
|
$formatted_end |
The DateTime object or formatted returned value (as determined by $format)
|
\DateTime
|
$end |
The end date as a DateTime object
|
string
|
$format |
The format the end 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_end', 'my_callback_function', 10, 5 );
function my_callback_function( $formatted_end, $end, $format, $post_id, $occurrence_id ){
//Change first value and return it
return $formatted_end
};