Created
May 24, 2019 13:58
-
-
Save jentheo/ea7814243751ff232c5c7d9283c6ec81 to your computer and use it in GitHub Desktop.
Hide recurring event instances in list views
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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