wp_next_scheduled


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

Parameters:
  • (string) $hook Action hook of the event.
  • (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.
Returns:
  • (false|int) The Unix timestamp of the next time the event will occur. False if the event doesn't exist.
Defined at:
Change Log:
  • 5: .

Description

Retrieve the next timestamp for an event.

Related Functions

wp_get_schedule, wp_get_schedules, wp_get_scheduled_event, wp_clear_scheduled_hook, wp_unschedule_hook

Top Google Results

User discussions

wpseek mobile