Created
September 17, 2013 22:04
-
-
Save anonymous/6601352 to your computer and use it in GitHub Desktop.
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', array($this, 'setup_listview_in_bar'), 1, 1 ); | |
add_filter( 'tribe-events-bar-views', array($this, 'setup_gridview_in_bar'), 5, 1 ) | |
</code></pre> | |
... | |
<pre><code class="php"> | |
public function setup_listview_in_bar( $views ) { | |
$views[] = array( 'displaying' => 'upcoming', 'anchor' => 'List View', 'url' => tribe_get_listview_link() ); | |
return $views; | |
} | |
public function setup_gridview_in_bar( $views ) { | |
$views[] = array( 'displaying' => 'month', 'anchor' => 'Calendar', 'url' => tribe_get_gridview_link() ); | |
return $views; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment