WordPress: Function Reference/wp unschedule event:修订间差异

来自站长百科
跳转至: 导航、​ 搜索
无编辑摘要
无编辑摘要
 
第1行: 第1行:
== Description ==
== 描述==
== 描述==
Un-schedules a previously-scheduled cron job.


取消先前安排的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 ); ?> %%%
%%% <?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后,你需要知道下一个操作的确切时间,以及下一个操作可能需要的函数参数,以取消这个操作。
注意运行了scheduled hook后,你需要知道下一个操作的确切时间,以及下一个操作可能需要的函数参数,以取消这个操作。


See:
看看:
看看:
* [[WordPress:Function_Reference/wp_schedule_event|wp_schedule_event]]
* [[WordPress:Function_Reference/wp_schedule_single_event|wp_schedule_single_event]]
* [[WordPress:Function_Reference/wp_clear_scheduled_hook|wp_clear_scheduled_hook]]
* [[WordPress:Function_Reference/wp_next_scheduled|wp_next_scheduled]]


* [[WordPress:Function_Reference/wp_schedule_event|wp_schedule_event]]
* [[WordPress:Function_Reference/wp_schedule_event|wp_schedule_event]]

2008年7月29日 (二) 15:13的最新版本

描述[ ]

取消先前安排的cron job。

用法[ ]

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

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

看看: