_get_cron_array

Retrieve cron info array option.

Description

(false|array) _get_cron_array(); 

Returns (false|array)

CRON info array.


Usage

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

Defined (1)

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

/wp-includes/cron.php  
  1. function _get_cron_array() { 
  2. $cron = get_option('cron'); 
  3. if ( ! is_array($cron) ) 
  4. return false; 
  5.  
  6. if ( !isset($cron['version']) ) 
  7. $cron = _upgrade_cron_array($cron); 
  8.  
  9. unset($cron['version']); 
  10.  
  11. return $cron;