WordPress:Function Reference/wp unschedule event

来自站长百科
Fludlen讨论 | 贡献2008年7月22日 (二) 14:45的版本
跳转至: 导航、​ 搜索

Description

描述

Un-schedules a previously-scheduled cron job.

取消先前安排的cron job。

Usage

用法

%%% <?php wp_unschedule_event(next_scheduled_time, 'my_schedule_hook', original_args ); ?> %%%

%%% <?php wp_unschedule_event(next_scheduled_time, 'my_schedule_hook', original_args ); ?> %%%

Note that you need to know the exact time of the next occurrence when scheduled hook was set to run, and the function arguments it was supposed to have, in order to unschedule it. All future occurrences are un-scheduled by calling this function.

注意运行了scheduled hook后,你需要知道下一个操作的确切时间,以及下一个操作可能需要的函数参数,以取消这个操作。

See: 看看: