themes_update_check_locales

themes_update_check_locales

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('themes_update_check_locales') is found 1 times:

  • /wp-includes/update.php line 687
    	 * @since 4.5.0 The default value of the `$locales` parameter changed to include all locales.
    	 *
    	 * @param string[] $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; // 30 seconds.
    	} else {
    		// Three seconds, plus one extra second for every 10 themes.