I tested a little bit with custom conditional placeholders, but I don’t get it that the title and the link doesn’t shown if the user habe no rights to read the event if logged in:
add_action('em_event_output_condition', 'my_em_user_access', 1, 4);
function my_em_user_access($replacement, $condition, $match, $EM_Event){
$events_page_id = get_option ( 'dbem_events_page' );
$events_page = get_post($events_page_id);
$user_can = current_user_can('read', $events_page);
if( !$user_can ) {
$replacement = '';
}
else {
$replacement = '#_EVENTNAME';
}
return $replacement;
}
Any ideas?