apply_filters( 'schedule_event', object|false $event )

Modify an event before it is scheduled.


Parameters

$event

An object containing an event's data, or boolean false to prevent the event from being scheduled.<br>

  • 'hook'
    (string) Action hook to execute when the event is run.<br>
  • 'timestamp'
    (int) Unix timestamp (UTC) for when to next run the event.<br>
  • 'schedule'
    (string|false) How often the event should subsequently recur.<br>
  • 'args'
    (array) Array containing each separate argument to pass to the hook's callback function.<br>
  • 'interval'
    (int) Optional. The interval time in seconds for the schedule. Only present for recurring events.<br>


Source

File: wp-includes/cron.php

View on GitHub



Changelog

Changelog
Version Description
3.1.0 Introduced.