wp_next_scheduled

SummerySummery

Retrieve the next timestamp for an event.

Syntax

wp_next_scheduled( string $hook, array $args = array() )

ParametersParameters

$hook

(string) (Required) Action hook of the event.

$args

(array) (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 value: array()

ReturnReturn

(int|false) The Unix timestamp of the next time the event will occur. False if the event doesn't exist.

SourceSource

File: wp-includes/cron.php


			

ChangelogChangelog

Changelog
Version Description
2.1.0 Introduced.
Scroll to Top