add_filter( 'vcex_grid_query', function( $args ) {
$args[ 'meta_query' ] = array(
'key' => '_EventStartDate',
'value' => date( 'Y-m-d' ) . ' 00:00:00',
'compare' => '>=',
'type' => 'DATETIME'
);
return $args;
} );
Snippets: Exclude Passed Events (Events Calendar Plugin) from Total Modules
All PHP snippets should be added via a child theme's functions.php file.