{ 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.
182<?php183 * @type int $timestamp Unix timestamp (UTC) for when to next run the event.184 * @type string|false $schedule How often the event should subsequently recur.185 * @type array $args Array containing each separate argument to pass to the hook's callback function.186 * @type int $interval Optional. The interval time in seconds for the schedule. Only present for recurring events.187 * }188 */189 $event = apply_filters( 'schedule_event', $event );190191 // A plugin disallowed this event.192 if ( ! $event ) {193 if ( $wp_error ) {194 return new WP_Error(195 'schedule_event_false',
History
Introduced in 3.1.0. Unchanged from 6.7.7 through 7.1.0.