WordPress at a glance
function is not described

_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.

This is an internal function for using it by WP core itself. It's not recommended to use this function in your code.

No Hooks.

Return

null. Null. Nothing.

Usage

_maybe_update_themes();

Changelog

Since 2.7.0 Introduced.

Code of _maybe_update_themes() WP 5.7.1

<?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();
}