wphooks.info - themes_update_check_locales

themes_update_check_locales

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

wp-includes/update.php:
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
	$locales = array_values( get_available_languages() );

	/**
	 * Filters the locales requested for theme translations.
	 *
	 * @since 3.7.0
	 * @since 4.5.0 The default value of the `$locales` parameter changed to include all locales.
	 *
	 * @param array $locales Theme locales. Default is all available locales of the site.
	 */
	$locales = apply_filters( 'themes_update_check_locales', $locales );
	$locales = array_unique( $locales );

	if ( $doing_cron ) {
		$timeout = 30;
	} else {
		// Three seconds, plus one extra second for every 10 themes
		$timeout = 3 + (int) ( count( $themes ) / 10 );
	}