Filters the document title before it is generated.
Passing a non-empty value will short-circuit wp_get_document_title() , returning that value instead.
$titlestring
$title = apply_filters( 'pre_get_document_title', '' );
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/pre_get_document_title