Tribe__Events__Pro__Main::setup_weekview_in_bar( array $views )

Add week view to the views selector in the tribe events bar.


Parameters

$views

(array) (Required) The current array of views registered to the tribe bar.


Top ↑

Return

(array) The views registered with week view added.


Top ↑

Source

File: src/Tribe/Main.php

		public function setup_weekview_in_bar( $views ) {
			$views[] = array(
				'displaying'     => 'week',
				'anchor'         => __( 'Week', 'tribe-events-calendar-pro' ),
				'event_bar_hook' => 'tribe_events_week_before_template',
				'url'            => tribe_get_week_permalink(),
			);

			return $views;
		}