Ready to get started?Download WordPress


Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Difference between revisions of "Function Reference/wp clear scheduled hook"

m (Clarifydescription)
(Added Stub)
Line 14: Line 14:
* [[Function_Reference/wp_unschedule_event|wp_unschedule_event]]
* [[Function_Reference/wp_unschedule_event|wp_unschedule_event]]
[[Category:New page created]]
[[Category:New page created]]

Revision as of 02:30, 13 January 2008


Un-schedules all previously-scheduled cron jobs using a particular hook name and arguments.


 <?php wp_clear_scheduled_hook('my_schedule_hook'original_arg1arg2, ... ); ?> 

Note that you need to know the exact function arguments this cron hook was supposed to have, in order to unschedule it. All ocurrences of this hook in the schedule, with these arguments, will be removed from the schedule. Also note that the arguments are passed-in singly, not in an array as in the other cron-related functions.


This page is marked as incomplete. You can help Codex by expanding it.