Codex

Function Reference/wp get schedule

Contents

Description

Retrieve Cron schedule for hook with arguments.

Usage

<?php wp_get_schedule$hook$args ); ?>

Parameters

$hook
(callback) (required) Function or method to call, when cron is run.
Default: None
$args
(array) (optional) Arguments to pass to the hook function.
Default: array

Return Values

(string|boolean) 
False, if no schedule. Schedule on success.

Examples

Notes

  • Cron is named after a unix program which runs unattended scheduled tasks.

Change Log

Since: 2.1.0

Source File

wp_get_schedule() is located in wp-includes/cron.php.

Related

See also index of Function Reference and index of Template Tags.