wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
_get_cron_array is private and should not be used in themes or plugins directly.
_get_cron_array › WordPress Function
Seit2.1.0
Veraltetn/v
› _get_cron_array ( Keine Parameter )
| Zugriff: |
|
| Gibt zurück: |
|
| Definiert in: |
|
| Codex: | |
| Changelog: |
|
Retrieves cron info array option.
Ähnliche Funktionen: _set_cron_array, _upgrade_cron_array, rest_is_array, __return_empty_array, _get_comment_reply_id
Quellcode
function _get_cron_array() {
$cron = get_option( 'cron' );
if ( ! is_array( $cron ) ) {
return array();
}
/**
* @var array{ version: int, ...<int, array<string, array<string, array{ schedule: string|false, args: array<mixed>, interval?: non-negative-int }>>> }
* |array<int, array<string, array{ schedule: string|false, args: array<mixed>, interval?: non-negative-int }>> $cron
*/
if ( ! isset( $cron['version'] ) ) {
$cron = _upgrade_cron_array( $cron );
}
unset( $cron['version'] );
/** @var array<int, array<string, array<string, array{ schedule: string|false, args: array<mixed>, interval?: non-negative-int }>>> $cron */
return $cron;
}