On this page
apply_filters( 'document_title_parts', array $title )
Filters the parts of the document title.
Parameters
$titlearray-
The document title parts.
titlestringTitle of the viewed page.pagestringOptional. Page number if paginated.taglinestringOptional. Site description when on home page.sitestringOptional. Site title when not on home page.
Source
File: wp-includes/general-template.php. View all references
$title = apply_filters( 'document_title_parts', $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/document_title_parts