eventorganiser_pre_event_content
(filter)
Filters the event details automatically appended to the event's content when single-event.php is not present in the theme.
If template handling is enabled and the theme does not have single-event.php
template, Event Organiser uses the_content
filter to add prepend the content
with event details. This filter allows you to change the prepended details.
Unless you have a good reason, it's strongly recommended to change the templates
rather than use this filter.
Parameters
string
|
$event_details |
The event details to be added.
|
string
|
$content |
The original event content
|
Example Usage
add_filter( 'eventorganiser_pre_event_content', 'my_callback_function', 10, 2 );
function my_callback_function( $event_details, $content ){
//Change first value and return it
return $event_details
};