Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jesseeproductions/7f31f90e6474c937733c844ad1db8aca to your computer and use it in GitHub Desktop.
Save jesseeproductions/7f31f90e6474c937733c844ad1db8aca 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