document_title_parts WordPress Filter Hook
The document_title_parts hook allows you to change the title parts of a document. This can be useful for changing the order of the parts, or for adding or removing parts.
apply_filters( 'document_title_parts', array $title ) #
Filters the parts of the document title.
Parameters
- $title
(array)The document title parts.
- 'title'
(string) Title of the viewed page. - 'page'
(string) Optional. Page number if paginated. - 'tagline'
(string) Optional. Site description when on home page. - 'site'
(string) Optional. Site title when not on home page.
- 'title'
Source
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |