HTTP/2 301
server: nginx
date: Sun, 12 Oct 2025 10:13:46 GMT
content-type: text/html; charset=UTF-8
x-olaf: ⛄
vary: accept, content-type
x-redirect-by: WordPress
location: https://developer.wordpress.org/reference/hooks/pre_get_document_title/
x-frame-options: SAMEORIGIN
alt-svc: h3=":443"; ma=86400
x-nc: MISS ord 2
HTTP/2 200
server: nginx
date: Sun, 12 Oct 2025 10:13:47 GMT
content-type: text/html; charset=UTF-8
vary: Accept-Encoding
x-olaf: ⛄
vary: accept, content-type
link:
; rel="https://api.w.org/"
link:
; rel="alternate"; title="JSON"; type="application/json"
link: ; rel=shortlink
x-frame-options: SAMEORIGIN
content-encoding: gzip
alt-svc: h3=":443"; ma=86400
x-nc: MISS ord 2
pre_get_document_title – Hook | Developer.WordPress.org
apply_filters( ‘pre_get_document_title’, string $title )
Filters the document title before it is generated.
$title
stringThe document title. Default empty string.
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: