wp_unschedule_event


wp_unschedule_event ( $timestamp, $hook, $args = array() )

Parameters:
  • (int) $timestamp Unix timestamp (UTC) of the event.
  • (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:
  • (bool) True if event successfully unscheduled. False for failure.
Defined at:
Change Log:
  • 5: .

Description

Unschedule a previously scheduled event.

The $timestamp and $hook parameters are required so that the event can be identified.

Related Functions

wp_schedule_event, wp_reschedule_event, wp_get_scheduled_event, wp_schedule_single_event, wp_scheduled_delete

Top Google Results

User discussions

wpseek mobile