Skip to content

Instantly share code, notes, and snippets.

@jazbek
Created July 26, 2013 04:41
Show Gist options
  • Save jazbek/6086295 to your computer and use it in GitHub Desktop.
Save jazbek/6086295 to your computer and use it in GitHub Desktop.
Change view names in dropdown
add_filter('tribe-events-bar-views', 'tribe_filter_view_names', 100);
function tribe_filter_view_names($views){
foreach ( $views as &$view ) {
if ( $view['anchor'] == 'Month' ) {
$view['anchor'] = 'Calendar';
} else if ( $view['anchor'] == 'Photo') {
$view['anchor'] = 'List';
}
}
return $views;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment