Created
March 15, 2017 20:18
-
-
Save elimn/db33dbfd505108cb140c692d044520aa to your computer and use it in GitHub Desktop.
MT | TEC | Change List Widget's View More link to go to Page 2 of the calendar
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
<?php | |
/** | |
* Takes you to page 2 of the list view from the Widget's View More... link | |
* | |
* @see tribe_events_get_list_widget_view_all_link | |
*/ | |
function tribe_customize_widget_view_more_link( $link ){ | |
return $link . '?tribe_paged=2&tribe_event_display=list'; | |
} | |
add_filter( 'tribe_events_get_list_widget_view_all_link', 'tribe_customize_widget_view_more_link' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment