wp_unschedule_event [ WordPress Function ]
wp_unschedule_event ( $timestamp, $hook, $args = array() )
| Parameters: |
|
| Defined at: |
|
Soorgelijke functies: wp_schedule_event, wp_reschedule_event, wp_scheduled_delete, wp_schedule_single_event, wp_next_scheduled
Unschedule a previously scheduled cron job.
The $timestamp and $hook parameters are required, so that the event can be identified.
Source
<?php
function wp_unschedule_event( $timestamp, $hook, $args = array() ) {
$crons = _get_cron_array();
$key = md5(serialize($args));
unset( $crons[$timestamp][$hook][$key] );
if ( empty($crons[$timestamp][$hook]) )
unset( $crons[$timestamp][$hook] );
if ( empty($crons[$timestamp]) )
unset( $crons[$timestamp] );
_set_cron_array( $crons );
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- Function Reference/wp unschedule event « WordPress Codex
Codex. Codex tools: Log in. Function Reference/wp unschedule event. Description. Un-schedules a previously-scheduled cron job. Usage ...
codex.wordpress.org - wp_unschedule_event (WordPress Function) - WPSeek.com
WordPress lookup for wp_unschedule_event, a WordPress Function. wpseek. com is a WordPress-centric search tool for developers and theme authors.
wpseek.com - PHPXRef 0.7 : WordPress : Detail view of cron.php
wp_unschedule_event() wp_clear_scheduled_hook() wp_next_scheduled() spawn_cron() wp_cron() wp_get_schedules() wp_get_schedule() _get_cron_array() ...
phpxref.ftwr.co.uk - cron.php - PHP Cross Reference of WordPress Source - Yoast
Jun 1, 2011 ... wp_unschedule_event() wp_clear_scheduled_hook() wp_next_scheduled() spawn_cron() wp_cron() wp_get_schedules() wp_get_schedule() ...
xref.yoast.com