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.
Contents
Parameters
- $label
-
(string) (Required) The title string.
- $view
-
(TribeEventsViewsV2View_Interface) (Required) The View currently rendering.
Return
(string) $label
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; }
Changelog
Version | Description |
---|---|
6.0.2 | Introduced. |