Tribe__Events__Pro__Main::setup_datepicker_label( string $caption )

Change the datepicker label, depending on what view the user is on.


Parameters

$caption

(string) (Required) The current caption for the datepicker.


Top ↑

Return

(string) The new caption.


Top ↑

Source

File: src/Tribe/Main.php

		public function setup_datepicker_label ( $caption ) {
			if ( tribe_is_week() ) {
				$caption = __( 'Week Of', 'tribe-events-calendar-pro' );
			}

			return $caption;
		}