WordPress at a glance
function is not described

_set_cron_array() WP 2.1.0

Updates the CRON option with the new CRON array.

  • Since 5.1.0 Return value modified to outcome of update_option().

No Hooks.

Return

true/false. True if cron array updated, false on failure.

Usage

_set_cron_array( $cron );
$cron(array) (required)
Cron info array from _get_cron_array().

Code of set cron array: wp-includes/cron.php VER 5.1.1

<?php
function _set_cron_array( $cron ) {
	$cron['version'] = 2;
	return update_option( 'cron', $cron );
}