_get_cron_array() WP 2.1.0
Retrieve cron info array option.
This is an internal function for using it by WP core itself. It's not recommended to use this function in your code.
No Hooks.
Return
Array|false
. Cron info array on success, false on failure.
Usage
_get_cron_array();
Changelog
Since 2.1.0 | Introduced. |
Code of _get_cron_array() get cron array WP 5.7.1
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;
}