Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Set default month view to October 2013.
- */
- add_filter('tribe_get_month_view_date', 'set_month_view_start_date');
- function set_month_view_start_date($date) {
- $query = $GLOBALS['wp_query']->query;
- if (2 !== count($query) || TribeEvents::POSTTYPE !== $query['post_type'] || 'month' !== $query['eventDisplay']) return $date;
- return '2013-10-01';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement