themes_update_check_locales хук-фильтрWP 3.7.0

Filters the locales requested for theme translations.

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

add_filter( 'themes_update_check_locales', 'wp_kama_themes_update_check_locales_filter' );

/**
 * Function for `themes_update_check_locales` filter-hook.
 * 
 * @param string[] $locales Theme locales.
 *
 * @return string[]
 */
function wp_kama_themes_update_check_locales_filter( $locales ){

	// filter...
	return $locales;
}
$locales(string[])
Theme locales.
По умолчанию: all available locales of the site

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

С версии 3.7.0 Введена.
С версии 4.5.0 The default value of the $locales parameter changed to include all locales.

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

wp_update_themes()
themes_update_check_locales
wp-includes/update.php 689
$locales = apply_filters( 'themes_update_check_locales', $locales );

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

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