wp_reschedule_event


wp_reschedule_event ( $timestamp, $recurrence, $hook, $args = array() )

Parameters:
  • (int) $timestamp Unix timestamp (UTC) for when the event was scheduled.
  • (string) $recurrence How often the event should subsequently recur. See wp_get_schedules() for accepted values.
  • (string) $hook Action hook to execute when the event is run.
  • (array) $args Optional. Array containing each separate argument to pass to the hook's callback function.
Returns:
  • (bool) True if event successfully rescheduled. False for failure.
Defined at:
Change Log:
  • 5: .

Description

Reschedules a recurring event.

Mainly for internal use, this takes the time stamp of a previously run recurring event and reschedules it for its next run.

To change upcoming scheduled events, use {@see wp_schedule_event} to change the recurrence frequency.

Related Functions

wp_schedule_event, wp_unschedule_event, wp_get_scheduled_event, wp_scheduled_delete, wp_schedule_single_event

Top Google Results

User discussions

wpseek mobile