document_title WordPress Filter Hook

The document_title hook is used to filter the document title before it is generated. This hook is called at the end of wp_title() function.

apply_filters( 'document_title', string $title ) #

Filters the document title.


Parameters

$title

(string)Document title.


Top ↑

Source

File: wp-includes/general-template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.8.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