themes_update_check_locales filter-hookWP 3.7.0

Filters the locales requested for theme translations.

Usage

add_filter( 'themes_update_check_locales', 'wp_kama_themes_update_check_locales_filter' );

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

	// filter...
	return $locales;
}
$locales(array)
Theme locales.
Default: all available locales of the site

Changelog

Since 3.7.0 Introduced.
Since 4.5.0 The default value of the $locales parameter changed to include all locales.

Where the hook is called

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

Where the hook is used in WordPress

Usage not found.