pre_reschedule_event

最后更新于:2021-11-27 19:54:10

apply_filters( ‘pre_reschedule_event’, null|bool|GC_Error $pre, stdClass $event, bool $gc_error )

Filter to preflight or hijack rescheduling of events.

参数

$pre

(null|bool|GC_Error)
Value to return instead. Default null to continue adding the event.

$event

(stdClass)
An object containing an event’s data.

  • ‘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.

$gc_error

(bool)
Whether to return a GC_Error on failure.

源文件

文件: gc-includes/cron.php

View on Trac