_set_cron_array

Updates the CRON option with the new CRON array.

Description

_set_cron_array( (array) $cron ); 

Parameters (1)

0. $cron (array)
Cron info array from _get_cron_array().

Usage

  1. if ( !function_exists( '_set_cron_array' ) ) { 
  2. require_once ABSPATH . WPINC . '/cron.php'; 
  3.  
  4. // Cron info array from _get_cron_array(). 
  5. $cron = array(); 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = _set_cron_array($cron); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/cron.php  
  1. function _set_cron_array($cron) { 
  2. $cron['version'] = 2; 
  3. update_option( 'cron', $cron );