Definition:
function wp_next_scheduled( $hook, $args = array() {}
Retrieve the next timestamp for a cron event.
Parameters
- string $hook: Action hook to execute when cron is run.
- array $args: Optional. Arguments to pass to the hook’s callback function.
Return values
returns:The UNIX timestamp of the next time the scheduled event will occur.
Source code
function wp_next_scheduled( $hook, $args = array() ) {
$crons = _get_cron_array();
$key = md5(serialize($args));
if ( empty($crons) )
return false;
foreach ( $crons as $timestamp => $cron ) {
if ( isset( $cron[$hook][$key] ) )
return $timestamp;
}
return false;
}
3945

February 12, 2011 


No comments yet... Be the first to leave a reply!