pre_unschedule_event
apply_filters( ‘pre_unschedule_event’, null|bool $pre , int $timestamp , string $hook , array $args )
过滤钩子:过滤到飞行前或劫持非计划事件。
Filter Hook: Filter to preflight or hijack unscheduling of events.
说明(Description)
返回非空值将使正常的非计划过程短路,导致函数返回过滤后的值。
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$pre | (null | bool) | 要返回的值。默认为空以继续取消事件的计划。 |
$timestamp | (int) | 运行事件的时间戳。 |
$hook | (string) | 动作挂钩,其执行将不定期。 |
$args | (array) | 传递给钩子回调函数的参数。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
5.1.0 | wp-includes/cron.php:365 | 1 | 0 |
pre_unschedule_event 为WP2原创文章,链接:https://www.wp2.cn/hook/pre_unschedule_event/