Skip to content

Instantly share code, notes, and snippets.

Created September 17, 2013 22:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/6601342 to your computer and use it in GitHub Desktop.
Save anonymous/6601342 to your computer and use it in GitHub Desktop.
add_filter( 'tribe-events-bar-views', 'my_setup_view_for_bar', 10);
public 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