Modify an event before it is scheduled.
Parameters
$eventobject|false- An object containing an event’s data, or boolean false to prevent the event from being scheduled.
hookstringAction hook to execute when the event is run.timestampintUnix timestamp (UTC) for when to next run the event.schedulestring|falseHow often the event should subsequently recur.argsarrayArray containing each separate argument to pass to the hook’s callback function.intervalintOptional. The interval time in seconds for the schedule. Only present for recurring events.
Source
$event = apply_filters( 'schedule_event', $event );
Changelog
| Version | Description |
|---|---|
| 3.1.0 | Introduced. |
Example migrated from Codex:
Eliminates all checks for plugins