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



theme_locale ›

Since3.0.0
已弃用n/a
apply_filters( 'theme_locale', determine_locale()
参数: (2)
  • (string) $locale The theme's current locale.
    Required: Yes
  • (string) $domain Text domain. Unique identifier for retrieving translated strings.
    Required: Yes
定义在:
文档:

Filters a theme's locale.





源码

$locale = apply_filters( 'theme_locale', determine_locale(), $domain );