Modify an event before it is scheduled.
Parameters
$event
object|false- An object containing an event’s data, or boolean false to prevent the event from being scheduled.
hook
stringAction hook to execute when the event is run.timestamp
intUnix timestamp (UTC) for when to next run the event.schedule
string|falseHow often the event should subsequently recur.args
arrayArray containing each separate argument to pass to the hook’s callback function.interval
intOptional. 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