Title::filter_document_title_parts( array $title = array() )
Filters and returns the title part of the array produced by the wp_get_document_title function.
Contents
Parameters
- $title
-
(array) (Optional) The document title parts.
Default value: array()
Return
(array) The filtered document title parts.
Source
File: src/Tribe/Views/V2/Template/Title.php
public function filter_document_title_parts( array $title = [] ) {
$sep = apply_filters( 'document_title_separator', '-' );
$the_title = $title['title'];
$new_title = $this->build_title( false );
/**
* Filters the page title built for event single or archive pages.
*
* @since 4.9.10
*
* @param string $new_title The new title built for the page.
* @param string $title The original title.
* @param null|string $sep The separator sequence to separate the title components.
*/
$the_title = apply_filters( 'tribe_events_title_tag', $new_title, $the_title, $sep );
$title['title'] = $the_title;
return $title;
}
Changelog
| Version | Description |
|---|---|
| 4.9.10 | Introduced. |