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.


Parameters

$title

(string) (Required) The current title value.


Top ↑

Return

(string) The current title or empty string.


Top ↑

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 '';
	}

Top ↑

Changelog

Changelog
Version Description
5.0.0 Introduced.