[wp-hackers] Pseudo-Cron

Otto otto at ottodestruct.com
Sat Sep 22 15:56:44 GMT 2007

On 9/21/07, Jennifer Hodgdon <yahgrp at poplarware.com> wrote:
> So why have two functions to unschedule -- unschedule and clear, if
> they do the same thing?

They don't. The unschedule will unschedule any event, given the
timestamp, hook, and args.

The clear will unschedule any set of events that match just the hook
and args, no need to find out the next timestamp for it.

In other words, I could have the same hook on two different schedules.
Clear would clear them both. Unschedule would let me only get rid of
one of them.

More information about the wp-hackers mailing list