W3cubDocs

/WordPress

apply_filters( ‘document_title_parts’, array $title )

Filters the parts of the document title.

Parameters

$titlearray
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.

Source

$title = apply_filters( 'document_title_parts', $title );

Changelog

Version Description
4.4.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/document_title_parts