Alert: 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.

_get_cron_array() WordPress Function

The get_cron_array() function is used to retrieve an array of scheduled cron jobs. This function is useful for debugging purposes or for finding out when a particular event is scheduled to run.

_get_cron_array() #

Retrieve cron info array option.


Return

(array[]|false) Array of cron info arrays on success, false on failure.


Top ↑

Source

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;
}


Top ↑

Changelog

Changelog
VersionDescription
2.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.