Hooks::filter_view_month_today_button_title( string $label, TribeEventsViewsV2View_Interface $view )

Filters the Today button title and aria-label to change the text to something appropriate for Month View.


Parameters

$label

(string) (Required) The title string.

$view

(TribeEventsViewsV2View_Interface) (Required) The View currently rendering.


Top ↑

Return

(string) $label


Top ↑

Source

File: src/Tribe/Views/V2/Hooks.php

	public function filter_view_month_today_button_title( $label, $view ) {
		$label = esc_html_x(
			'Click to select the current month',
			"The default text for the 'today' button's title and aria-label on the Week View.",
			'the-events-calendar'
		);

		return $label;
	}

Top ↑

Changelog

Changelog
Version Description
6.0.2 Introduced.