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.


Top ↑

Source

File: wp-includes/general-template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.4.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More