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



pre_determine_locale ›

Since5.0.0
已弃用n/a
apply_filters( 'pre_determine_locale', null )
参数:
  • (string|null) The locale to return and short-circuit, or null as default.
    Required: Yes
定义在:
文档:

Filters the locale for the current request prior to the default determination process.

Using this filter allows to override the default logic, effectively short-circuiting the function.





源码

$determined_locale = apply_filters( 'pre_determine_locale', null );