On this page
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
$titlestring-
The document title. Default empty string.
Source
File: wp-includes/general-template.php. View all references
$title = apply_filters( 'pre_get_document_title', '' );
Related
Used By
| Used By | Description |
|---|---|
| wp_get_document_title() wp-includes/general-template.php | Returns document title for the current page. |
Changelog
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/pre_get_document_title