WordPress at a glance
function is not described

_set_cron_array() WP 2.1.0

Updates the CRON option with the new CRON array.

No Hooks.


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


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


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

Code of set cron array: wp-includes/cron.php WP 5.2.2

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