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

来自站长百科
跳转至: 导航、​ 搜索
(新页面: == Description == Un-schedules a previously-scheduled cron job. == Usage == %%% <?php wp_unschedule_event(next_scheduled_time, 'my_schedule_hook', original_args ); ?> %%% Note that yo...)
 
无编辑摘要
第1行: 第1行:
== Description ==
== Description ==
== 描述==


Un-schedules a previously-scheduled cron job.
Un-schedules a previously-scheduled cron job.
取消先前安排的cron job。


== Usage ==
== 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.
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:
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]]
* [[WordPress:Function_Reference/wp_schedule_single_event|wp_schedule_single_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_clear_scheduled_hook|wp_clear_scheduled_hook]]
* [[WordPress:Function_Reference/wp_next_scheduled|wp_next_scheduled]]
* [[WordPress:Function_Reference/wp_next_scheduled|wp_next_scheduled]]

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: 看看: