Created
July 26, 2013 04:41
-
-
Save jazbek/6086295 to your computer and use it in GitHub Desktop.
Change view names in dropdown
This file contains 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
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