WordPress at a glance
filter is not described

document_title_parts filter-hook . WP 4.4.0

Filters the parts of the document title.

Usage

add_filter( 'document_title_parts', 'filter_function_name_148' );
function filter_function_name_148( $title ){
	// filter...

	return $title;
}
$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.

Changelog

Since 4.4.0 Introduced.

Where the hook is called

wp_get_document_title()
document_title_parts
wp-includes/general-template.php 1233
$title = apply_filters( 'document_title_parts', $title );

Where in WP core the hook is used WordPress

Usage not found.