pre_unschedule_event

最后更新于:2021-11-27 20:24:15

apply_filters( ‘pre_unschedule_event’, null|bool|GC_Error $pre, int $timestamp, string $hook, array $args, bool $gc_error )

Filter to preflight or hijack unscheduling of events.

参数

$pre

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

$timestamp

(int)
Timestamp for when to run the event.

$hook

(string)
Action hook, the execution of which will be unscheduled.

$args

(array)
Arguments to pass to the hook’s callback function.

$gc_error

(bool)
Whether to return a GC_Error on failure.

源文件

文件: gc-includes/cron.php

View on Trac