WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/wp next scheduled

Description

Returns the next timestamp for a cron event.

Usage

<?php $timestamp wp_next_scheduled$hook$args ); ?>

Parameters

$hook
(string) (required) Name of the action hook for event.
Default: None
$args
(array) (optional) Arguments to pass to the hook function(s).
Default: None

Return Value

(string|boolean) 
Timestamp, the time the scheduled event will next occur (unix timestamp). False, if the event isn't scheduled.

Notes

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

Change Log

Since: 2.1.0

Source File

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

Related

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