W3cubDocs

/WordPress

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

Modify an event before it is scheduled.

Parameters

$event

(stdClass|false) An object containing an event's data, or boolean false to prevent the event from being scheduled.

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

Source

File: wp-includes/cron.php

View on Trac

Changelog

Version Description
3.1.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/schedule_event