themes_update_check_locales хук-фильтр . WP 3.7.0
Filters the locales requested for theme translations.
Использование
add_filter( 'themes_update_check_locales', 'filter_function_name_7277' ); function filter_function_name_7277( $locales ){ // filter... return $locales; }
- $locales(массив)
- 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. |
Где вызывается хук
themes_update_check_locales
wp-includes/update.php 573
$locales = apply_filters( 'themes_update_check_locales', $locales );