eventorganiser_calendar_event_link
(filter)
Filters the link to the event's page on the admin calendar.
Note: As the calendar is cached, changes made using this filter
will not take effect immediately. You can clear the cache by
updating an event.
Example
add_filter('eventorganiser_calendar_event_link','myprefix_maybe_no_calendar_link',10,3);
function myprefix_maybe_no_calendar_link( $link, $event_id, $occurrence_id ){
$the_post = get_post($post_id);
if( empty($the_post->post_content) ){
return false;
}
return $link;
}
Parameters
string
|
$link |
The url the event points to on the calendar.
|
int
|
$event_id |
The event's post ID.
|
int
|
$occurrence_id |
The event's occurrence ID.
|
Example Usage
add_filter( 'eventorganiser_calendar_event_link', 'my_callback_function', 10, 3 );
function my_callback_function( $link, $event_id, $occurrence_id ){
//Change first value and return it
return $link
};