Title::filter_wp_title( string $title, null|string $sep = null, boolean $depth = false )
Builds and returns the page title, to be used to filter the wp_title tag.
Contents
Parameters
- $title
-
(string) (Required) The page title built so far.
- $sep
-
(null|string) (Optional) The separator sequence to separate the title components.
Default value: null
- $depth
-
(boolean) (Optional) Whether to display the taxonomy hierarchy as part of the title.
Default value: false
Return
(string) the filtered page title.
Source
File: src/Tribe/Views/V2/Template/Title.php
public function filter_wp_title( $title, $sep = null ) {
$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, $title, $sep );
return $the_title;
}
Changelog
| Version | Description |
|---|---|
| 4.9.10 | Introduced. |