WordPress at a glance
filter is not described

plugin_locale filter-hook . WP 3.0.0

Filters a plugin's locale.

Usage

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

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

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

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

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

load_plugin_textdomain()
plugin_locale
load_muplugin_textdomain()
plugin_locale
WooCommerce::load_plugin_textdomain()
plugin_locale
wp-includes/l10n.php 878
$locale = apply_filters( 'plugin_locale', determine_locale(), $domain );
wp-includes/l10n.php 912
$locale = apply_filters( 'plugin_locale', determine_locale(), $domain );
woocommerce/includes/class-woocommerce.php 609
$locale = apply_filters( 'plugin_locale', $locale, 'woocommerce' );

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

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