A WordPress-centric search engine for devs and theme authors



pre_get_document_title ›

Since4.4.0
Deprecatedn/a
apply_filters( 'pre_get_document_title', '' )
Parameters:
  • (string) $title The document title. Default empty string.
    Required: Yes
Defined at:
Codex:

Filters the document title before it is generated.

Passing a non-empty value will short-circuit wp_get_document_title(), returning that value instead.





Source

$title = apply_filters( 'pre_get_document_title', '' );