执行WordPress自动后台更新。

原型

wp_maybe_auto_update()

源文件

路径:wp-includes/update.php

<?php
...
function wp_maybe_auto_update() {
	include_once( ABSPATH . '/wp-admin/includes/admin.php' );
	include_once( ABSPATH . '/wp-admin/includes/class-wp-upgrader.php' );
	$upgrader = new WP_Automatic_Updater;
	$upgrader->run();
}
...
?>

其他

英文文档:https://developer.wordpress.org/reference/functions/wp_maybe_auto_update/