A WordPress-centric search engine for devs and theme authors



theme_locale ›

Since3.0.0
Deprecatedn/a
apply_filters( 'theme_locale', is_admin()
Parameters: (2)
  • (string) $locale The theme's current locale.
    Required: Yes
  • (string) $domain Text domain. Unique identifier for retrieving translated strings.
    Required: Yes
Defined at:
Codex:

Filters a theme's locale.





Source

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