Hooks::pre_get_document_title( string $title )
Filters the pre_get_document_title to prevent conflicts when other plugins modify this initial value on our pages.
Contents
Parameters
- $title
-
(string) (Required) The current title value.
Return
(string) The current title or empty string.
Source
File: src/Tribe/Views/V2/Hooks.php
public function pre_get_document_title( $title ) {
$bootstrap = $this->container->make( Template_Bootstrap::class );
if ( ! $bootstrap->should_load() || $bootstrap->is_single_event() ) {
return $title;
}
return '';
}
Changelog
| Version | Description |
|---|---|
| 5.0.0 | Introduced. |