Core Function
View Source on Trac ↗ wp_next_scheduled()
wp_next_scheduled( mixed $hook, mixed $args = array() ) Retrieves the timestamp of the next scheduled event for the given hook.
Parameters 2 required
| Name / Type | Description |
|---|---|
| $hook string | Action hook of the event. Required |
| array | $args Optional. Array containing each separate argument to pass to the hook's callback function. Although not passed to a callback, these arguments are used to uniquely identify the event, so they should be the same as those used when originally scheduling the event. Default empty array. Required |
Return Value
((int)
| false) The Unix timestamp (UTC) of the next time the event will occur. False if the event doesn't exist.
Function Information
Since Version
2.1.0
Source File
wp-includes/cron.php
Advertisement