Add a new cron job to the DB, that runs only once.
static public add_single_cron ( string $name, mixed $callback, |
||
$name | string | The name of the cron job. |
$callback | mixed | The callback function or plugin action for the cron job to execute. |
$run_time | The time to execute the cron. | |
$description | string | The description of the cron job. |
return |
/** * I should really comment all these functions. --matt */ protected function _add_cron($time = 0) { CronTab::add_single_cron('defensio_queue', 'defensio_queue', time() + $time, _t('Queued comments to scan with defensio, that failed first time', 'defensio')); }