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



pre_determine_locale › WordPress过滤钩子

Since5.0.0
已弃用n/a
apply_filters( 'pre_determine_locale', null )
参数:
  • (string|null) $locale The locale to return and short-circuit. Default null.
    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 );