Filters the document title before it is generated.
Description
Passing a non-empty value will short-circuit wp_get_document_title() , returning that value instead.
Parameters
$title
string- The document title. Default empty string.
Source
$title = apply_filters( 'pre_get_document_title', '' );
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |
If you want to remove the Description from the main page:
If you want to change the archive page title of your custom post type then use this code: