document_title
Filters the document title.
Usage
add_filter( 'document_title', 'wp_kama_document_title_filter' );
/**
* Function for `document_title` filter-hook.
*
* @param string $title Document title.
*
* @return string
*/
function wp_kama_document_title_filter( $title ){
// filter...
return $title;
}
- $title(string)
- Document title.
Changelog
| Since 5.8.0 | Introduced. |
Where the hook is called
wp-includes/general-template.php 1294
$title = apply_filters( 'document_title', $title );
Where the hook is used in WordPress
wp-includes/default-filters.php 164
add_filter( $filter, 'wptexturize' );
wp-includes/default-filters.php 165
add_filter( $filter, 'convert_chars' );
wp-includes/default-filters.php 166
add_filter( $filter, 'esc_html' );
wp-includes/default-filters.php 171
add_filter( $filter, 'capital_P_dangit', 11 );