WordPress at a glance
function is not described

wp_maybe_auto_update() WP 3.7.0

Performs WordPress automatic background updates.

Updates WordPress core plus any plugins and themes that have automatic updates enabled.

No Hooks.

Return

````. Null. Nothing.

Usage

wp_maybe_auto_update();

Changelog

Since 3.7.0 Introduced.

Code of wp_maybe_auto_update() WP 5.7

<?php
function wp_maybe_auto_update() {
	include_once ABSPATH . 'wp-admin/includes/admin.php';
	require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';

	$upgrader = new WP_Automatic_Updater;
	$upgrader->run();
}