Skip to content

Instantly share code, notes, and snippets.

@barryhughes
Forked from anonymous/gist:6601342
Last active December 29, 2015 15:49
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 barryhughes/7693244 to your computer and use it in GitHub Desktop.
Save barryhughes/7693244 to your computer and use it in GitHub Desktop.
add_filter( 'tribe-events-bar-views', 'my_setup_view_for_bar', 10);
function my_setup_view_for_bar( $views ) {
$tec = TribeEvents::instance();
$views[] = array('displaying' => 'myview', 'anchor' => 'My view', 'url' => $tec->getOption( 'eventsSlug', 'events' ) . '/my_view_slug' );
return $views;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment