Tribe__Events__Pro__Geo_Loc::setup_view_for_bar( array $views )

Add the Map View to the view switcher in the Tribe Bar


Parameters

$views

(array) (Required) The current views in the Tribe Bar.


Top ↑

Return

(array)


Top ↑

Source

File: src/Tribe/Geo_Loc.php

	public function setup_view_for_bar( $views ) {
		$views[] = array(
			'displaying'     => 'map',
			'event_bar_hook' => 'tribe_events_list_the_title',
			'anchor'         => __( 'Map', 'tribe-events-calendar-pro' ),
			'url'            => tribe_get_mapview_link(),
		);

		return $views;
	}