Skip to content

Instantly share code, notes, and snippets.

@Christian-Roth
Last active August 2, 2019 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Christian-Roth/090480cbb90378b22b1268dd86162b44 to your computer and use it in GitHub Desktop.
Save Christian-Roth/090480cbb90378b22b1268dd86162b44 to your computer and use it in GitHub Desktop.
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