WordPress at a glance
function is not described

_maybe_update_plugins() WP 2.7.0

Check the last time plugins were run before checking plugin versions.

This might have been backported to WordPress 2.6.1 for performance reasons. This is used for the wp-admin to check only so often instead of 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. Nothing.

Usage

_maybe_update_plugins();

Changelog

Since 2.7.0 Introduced.

Code of _maybe_update_plugins() WP 5.7

<?php
function _maybe_update_plugins() {
	$current = get_site_transient( 'update_plugins' );

	if ( isset( $current->last_checked )
		&& 12 * HOUR_IN_SECONDS > ( time() - $current->last_checked )
	) {
		return;
	}

	wp_update_plugins();
}