WordPress at Your Fingertips
filter is not described

document_title filter-hook . WP 5.8.0

Filters the document title.

Usage

add_filter( 'document_title', 'filter_function_name_4660' );
function filter_function_name_4660( $title ){
	// filter...

	return $title;
}
$title(string)
Document title.

Changelog

Since 5.8.0 Introduced.

Where the hook is called

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

Where in WP core the hook is used WordPress

wp-includes/default-filters.php 135
add_filter( $filter, 'wptexturize' );
wp-includes/default-filters.php 136
add_filter( $filter, 'convert_chars' );
wp-includes/default-filters.php 137
add_filter( $filter, 'esc_html' );
wp-includes/default-filters.php 142
add_filter( $filter, 'capital_P_dangit', 11 );