A WordPress-centric search engine for devs and theme authors



_set_cron_array ›

Since2.1.0
Deprecatedn/a
_set_cron_array ( $cron )
Access:
  • private
Parameters:
  • (array) $cron Cron info array from _get_cron_array().
    Required: Yes
Returns:
  • (bool) True if cron array updated, false on failure.
Defined at:
Codex:
Change Log:
  • 5.0.0

Updates the CRON option with the new CRON array.



Source

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