Hooks::filter_view_month_today_button_label( string $today, TribeEventsViewsV2View_Interface $view )
Filters the Today button label to change the text to something appropriate for Week View.
Contents
Parameters
- $today
-
(string) (Required) The string used for the "Today" button on calendar views.
- $view
-
(TribeEventsViewsV2View_Interface) (Required) The View currently rendering.
Return
(string) $today
Source
File: src/Tribe/Views/V2/Hooks.php
public function filter_view_month_today_button_label( $today, $view ) { $today = esc_html_x( 'This Month', 'The default text label for the "today" button on the Month View.', 'the-events-calendar' ); return $today; }
Changelog
Version | Description |
---|---|
6.0.2 | Introduced. |