编辑“WordPress:Function Reference/wp unschedule event

跳转至: 导航、​ 搜索
警告:您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您登录创建一个账户,您的编辑将归属于您的用户名,且将享受其他好处。

该编辑可以被撤销。 请检查下面的对比以核实您想要撤销的内容,然后发布下面的更改以完成撤销。

最后版本 您的文本
第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]]
请注意,您对站长百科的所有贡献都可能被其他贡献者编辑,修改或删除。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源(参阅Wordpress-mediawiki:版权的细节)。 未经许可,请勿提交受版权保护的作品!
取消 编辑帮助(在新窗口中打开)