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



plugin_locale ›

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

Filters a plugin's locale.





源码

$locale = apply_filters( 'plugin_locale', is_admin() ? get_user_locale() : get_locale(), $domain );