WordPress at a glance
function is not described

wp_get_schedule() WP 2.1.0

Retrieve the recurrence schedule for an event.

  • See: wp_get_schedules() for available schedules.

No Hooks.


String/false. False, if no schedule. Schedule name on success.


wp_get_schedule( $hook, $args );
$hook(string) (required)
Action hook to identify the event.
Arguments passed to the event's callback function.
Default: array()

Code of wp get schedule: wp-includes/cron.php VER 5.0.3

function wp_get_schedule($hook, $args = array()) {
	$crons = _get_cron_array();
	$key = md5(serialize($args));
	if ( empty($crons) )
		return false;
	foreach ( $crons as $timestamp => $cron ) {
		if ( isset( $cron[$hook][$key] ) )
			return $cron[$hook][$key]['schedule'];
	return false;