Title::build_month_title( mixed $event_date )
Builds the Month view title.
Contents
Parameters
- $event_date
-
(mixed) (Required) The date to use to build the title.
Return
(string) The Month view title.
Source
File: src/Tribe/Views/V2/Template/Title.php
public function build_month_title( $event_date ) {
$event_date = Dates::build_date_object( $event_date )->format( Dates::DBDATEFORMAT );
$title = sprintf(
esc_html_x( '%1$s for %2$s', 'month view', 'the-events-calendar' ),
$this->events_label_plural,
date_i18n( tribe_get_date_option( 'monthAndYearFormat', 'F Y' ), strtotime( $event_date ) )
);
/**
* Filters the Month view title.
*
* @since 4.9.10
*
* @param string $title The Month view title.
* @param string The date to use to build the title, in the `Y-m-d` format.
*/
return apply_filters( 'tribe_events_views_v2_month_title', $title, $event_date );
}
Changelog
| Version | Description |
|---|---|
| 4.9.10 | Introduced. |