WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

_maybe_update_themes() WP 2.7.0

Check themes versions only after a duration of time.

This is for performance reasons to make sure that on the theme version checker is not run on every page load.

Хуков нет.

Возвращает

Null. Ничего.

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

_maybe_update_themes();

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

С версии 2.7.0 Введена.

Код maybe update themes: wp-includes/update.php WP 5.3

<?php
function _maybe_update_themes() {
	$current = get_site_transient( 'update_themes' );
	if ( isset( $current->last_checked ) && 12 * HOUR_IN_SECONDS > ( time() - $current->last_checked ) ) {
		return;
	}
	wp_update_themes();
}