WordPress.org

Ready to get started?Download WordPress

Codex

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

Difference between revisions of "Function Reference/wp unschedule event"

m (Clarify; add link to another function)
(Added Stub)
Line 15: Line 15:
 
* [[Function_Reference/wp_next_scheduled|wp_next_scheduled]]
 
* [[Function_Reference/wp_next_scheduled|wp_next_scheduled]]
   
  +
{{Stub}}
 
[[Category:Functions]]
 
[[Category:Functions]]
 
[[Category:New page created]]
 
[[Category:New page created]]

Revision as of 02:30, 13 January 2008

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:

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