WordPress 中文文档
Function Reference/wp unschedule event
From WordPress Chinese
[编辑]
Description
Un-schedules a previously-scheduled cron job.
[编辑]
Usage
%%% <?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.
See:
