_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
if ( !function_exists( '_set_cron_array' ) ) { require_once ABSPATH . WPINC . '/cron.php'; } // Cron info array from _get_cron_array(). $cron = array(); // NOTICE! Understand what this does before running. $result = _set_cron_array($cron);
Defined (1)
The function is defined in the following location(s).
- /wp-includes/cron.php
- function _set_cron_array($cron) {
- $cron['version'] = 2;
- update_option( 'cron', $cron );
- }