编辑“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]] |