钩子文档

cron_unschedule_event_error

💡 云策文档标注

概述

cron_unschedule_event_error 是一个 WordPress Hook,在取消计划 cron 事件时发生错误时触发,用于错误处理。

关键要点

  • 这是一个动作 Hook,当 unschedule_event 操作失败时触发。
  • 传递三个参数:$result(WP_Error 对象)、$hook(事件的动作钩子)和 $v(事件数据数组)。
  • 在 WordPress 6.1.0 版本中引入。

📄 原文内容

Fires if an error happens when unscheduling a cron event.

Parameters

$resultWP_Error
The WP_Error object.
$hookstring
Action hook to execute when the event is run.
$varray
Event data.

Source

do_action( 'cron_unschedule_event_error', $result, $hook, $v );

Changelog

Version Description
6.1.0 Introduced.