WordPress at a glance
filter is not described

theme_locale filter-hook . WP 3.0.0

Filters a theme's locale.

Usage

add_filter( 'theme_locale', 'filter_function_name_338', 10, 2 );
function filter_function_name_338( $locale, $domain ){
	// filter...

	return $locale;
}
$locale(string)
The theme's current locale.
$domain(string)
Text domain. Unique identifier for retrieving translated strings.

Список изменений

С версии 3.0.0 Введена.

Где вызывается хук

load_theme_textdomain()
theme_locale
wp-includes/l10n.php 951
$locale = apply_filters( 'theme_locale', determine_locale(), $domain );

Где используется хук в ядре WordPress

Использование не найдено.