{ An object containing an event's data, or boolean false to prevent the event from being scheduled. @type string $hook Action hook to execute when the event is run. @type int $timestamp Unix timestamp (UTC) for when to next run the event. @type string|false $schedule How often the event should subsequently recur. @type array $args Array containing each separate argument to pass to the hook's callback function. @type int $interval Optional. The interval time in seconds for the schedule. Only present for recurring events.}
$hookstring
Action hook to execute when the event is run.
$timestampint
Unix timestamp (UTC) for when to next run the event.
$schedulestring|false
How often the event should subsequently recur.
$argsarray
Array containing each separate argument to pass to the hook's callback function.
$intervalint
Optional. The interval time in seconds for the schedule. Only present for recurring events.
173<?php174 * @type int $timestamp Unix timestamp (UTC) for when to next run the event.175 * @type string|false $schedule How often the event should subsequently recur.176 * @type array $args Array containing each separate argument to pass to the hook's callback function.177 * @type int $interval Optional. The interval time in seconds for the schedule. Only present for recurring events.178 * }179 */180 $event = apply_filters( 'schedule_event', $event );181182 // A plugin disallowed this event.183 if ( ! $event ) {184 if ( $wp_error ) {185 return new WP_Error(186 'schedule_event_false',
History
Introduced in 3.1.0. Unchanged from 6.7.7 through 7.1.0.