Snippets: Display Past Events in Total VC Modules for the Events Calendar Plugin

add_filter( 'vcex_grid_query', function( $args, $attrs ) {

	// Alter arguments for Tribe events
	// @see documentation here: https://theeventscalendar.com/knowledgebase/using-tribe_get_events/
	$args['eventDisplay'] = 'custom';

	// Return query arguments
	return $args;

}, 40, 2 );
All PHP snippets should be added via a child theme's functions.php file.