wpseek.com
WordPress开发者和主题制作者的搜索引擎



pre_get_document_title › WordPress过滤钩子

Since4.4.0
已弃用n/a
apply_filters( 'pre_get_document_title', '' )
参数:
  • (string) $title The document title. Default empty string.
    Required: Yes
定义在:
文档:

Filters the document title before it is generated.

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





源码

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