wp_clear_scheduled_hook [ WordPress Function ]
wp_clear_scheduled_hook ( $hook, $args = array() )
| Parameters: |
|
| Defined at: |
|
Soorgelijke functies: wp_next_scheduled, wp_get_schedule, wp_get_schedules, wp_clearcookie, wp_clear_auth_cookie
Unschedule all cron jobs attached to a specific hook.
Source
<?php
function wp_clear_scheduled_hook( $hook, $args = array() ) {
// Backward compatibility
// Previously this function took the arguments as discrete vars rather than an array like the rest of the API
if ( !is_array($args) ) {
_deprecated_argument( __FUNCTION__, '3.0', __('This argument has changed to an array to match the behavior of the other cron functions.') );
$args = array_slice( func_get_args(), 1 );
}
while ( $timestamp = wp_next_scheduled( $hook, $args ) )
wp_unschedule_event( $timestamp, $hook, $args );
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- Function Reference/wp clear scheduled hook « WordPress Codex
Description. Un-schedules all previously-scheduled cron jobs using a particular hook name. Usage. <?php wp_clear_scheduled_hook( 'my_schedule_hook' ); ?> ...
codex.wordpress.org - WordPress › Support » wp_clear_scheduled_hook not working?
Posted 2 years ago #. Not sure if this is the right forum to ask this, but here goes. I am working on a plugin that makes use of wp-cron. I have scheduled events ...
wordpress.org - #10468 (wp_clear_scheduled_hook does not work when including ...
The value for $args that gets passed from wp_clear_scheduled_hook to wp_unschedule_event gets changed and therefore nothing will get unscheduled as no ...
core.trac.wordpress.org - wp_clear_scheduled_hook (WordPress Function) - WPSeek.com
WordPress lookup for wp_clear_scheduled_hook, a WordPress Function. wpseek.com is a WordPress-centric search tool for developers and theme authors.
wpseek.com