[wp-hackers] Difference between wp_unschedule_event and wp_clear_scheduled_hook ?
otto at ottodestruct.com
Fri May 28 13:09:20 UTC 2010
On Fri, May 28, 2010 at 6:46 AM, Rajasekharan S <rajasekharan.s at tcs.com> wrote:
> I have been going through the Function reference and the descriptions for
> both the following functions are identical. Are they functionally
> Un-schedules all previously-scheduled cron jobs using a particular hook
> wp unschedule event
> Un-schedules a previously-scheduled cron job. 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.
> What is the difference in function between these functions?
The descriptions seem clear enough. They're not the same as all.
wp_clear_scheduled_hook clears all instances of a scheduled hook.
wp unschedule event clears a single instance of a scheduled event.
More information about the wp-hackers