theme_locale filter-hook . WP 3.0.0
Filters a theme's locale.
Usage
add_filter( 'theme_locale', 'filter_function_name_1333', 10, 2 ); function filter_function_name_1333( $locale, $domain ){ // filter... return $locale; }
- $locale(string)
- The theme's current locale.
- $domain(string)
- Text domain. Unique identifier for retrieving translated strings.
Changelog
Since 3.0.0 | Introduced. |
Where the hook is called
theme_locale
wp-includes/l10n.php 951
$locale = apply_filters( 'theme_locale', determine_locale(), $domain );