Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jesseeproductions/28ced075dd7bdd1628d2af92dd57cbcf to your computer and use it in GitHub Desktop.
Save jesseeproductions/28ced075dd7bdd1628d2af92dd57cbcf to your computer and use it in GitHub Desktop.
Tribe Show Latest Past Events
// Disables on All Views
add_filter('tribe_events_views_v2_show_latest_past_events_view', 'tribe_show_latest_past_events' );
// Disable for a Specific View ( replace month with list, day, map, photo, or week )
//add_filter('tribe_events_views_v2_month_show_latest_past_events_view', 'tribe_show_latest_past_events' );
/**
* Filter to Hide the Latest Past Events
*
* @return bool Return false to disable the Latest Past Events
*/
function tribe_show_latest_past_events() {
return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment