Uses
Uses | Description |
---|---|
wp-includes/cron.php: _upgrade_cron_array() | Upgrade a Cron info array. |
wp-includes/option.php: get_option() | Retrieves an option value based on an option name. |
This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
Retrieve cron info array option.
(array|false) CRON info array.
File: wp-includes/cron.php
function _get_cron_array() { $cron = get_option( 'cron' ); if ( ! is_array( $cron ) ) { return false; } if ( ! isset( $cron['version'] ) ) { $cron = _upgrade_cron_array( $cron ); } unset( $cron['version'] ); return $cron; }
Version | Description |
---|---|
2.1.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/_get_cron_array