Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




wp_clear_scheduled_hook [ WordPress Function ]

wp_clear_scheduled_hook ( $hook, $args = array() )
Parameters:
  • (string) $hook Action hook, the execution of which will be unscheduled.
  • (array) $args Optional. Arguments that were to be pass to the hook's callback function.
Defined at:



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_slicefunc_get_args(), );
    }

    while ( 
$timestamp wp_next_scheduled$hook$args ) )
        
wp_unschedule_event$timestamp$hook$args );
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics