apply_filters( 'pre_get_document_title', string $title )

Filters the document title before it is generated.


Description

Passing a non-empty value will short-circuit wp_get_document_title(), returning that value instead.


Parameters

$title

The document title. Default empty string.


Source

File: wp-includes/general-template.php

View on GitHub



Changelog

Changelog
Version Description
WP-4.4.0 Introduced.