WordPress.org

Ready to get started?Download WordPress

Codex

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

Difference between revisions of "Function Reference/wp next scheduled"

m (fix typo)
(Using Parameter template)
Line 11: Line 11:
   
 
== Parameters ==
 
== Parameters ==
+
{{Parameter|$hook|string|Name of the action hook for event.}}
; hook: Name of action hook for event (string)
+
{{Parameter|$args|array|Arguments to pass to the hook function(s).|optional}}
 
; args: Arguments to pass into the hook function(s) (array)
 
   
 
See Also:
 
See Also:

Revision as of 02:32, 13 January 2008

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: