Unschedules a previously-scheduled cron job.
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 unscheduled by calling this function.
<?php wp_unschedule_event( $timestamp, $hook, $args ); ?>
This function does not return a value.
<?php // Get the timestamp for the next event. $timestamp = wp_next_scheduled( 'my_schedule_hook' ); // If this event was created with any special arguments, you need to get those too. $original_args = array(); wp_unschedule_event( $timestamp, 'my_schedule_hook', $original_args ); ?>
wp_unschedule_event() is located in