WordPress.org

Ready to get started?Download WordPress

Codex

Attention 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

 $timestamp = wp_next_scheduled( hook, args (optional)); 

Return Value

timestamp
The time the scheduled event will next occur (unix timestamp)

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

See Also: