Skip to content

Instantly share code, notes, and snippets.

@jentheo
Created May 24, 2019 13:58
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 jentheo/ea7814243751ff232c5c7d9283c6ec81 to your computer and use it in GitHub Desktop.
Save jentheo/ea7814243751ff232c5c7d9283c6ec81 to your computer and use it in GitHub Desktop.
Hide recurring event instances in list views
function tribe_hide_recurring_events( $hide, $query ) {
if ( tribe_is_list_view() || tribe_is_photo() || tribe_is_map() ) {
$hide = true;
}
return $hide;
}
add_filter( 'tribe_events_pro_should_hide_recurrence', 'tribe_hide_recurring_events', 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment