Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
The Events Calendar – Show events with ongoing events. More date arguments in /src/Tribe/Query.php, around line 1285.
<?php // Retrieve all events (with ongoing events) in October 2019
$events = tribe_get_events( [
'eventDisplay' => 'custom',
'ends_after' => '2019-10-01 00:01',
'starts_before' => '2019-10-31 23:59',
] );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment