WC_Background_Process::kill_process()
Kill process.
Description Description
Stop processing queue items, clear cronjob and delete all batches.
Source Source
File: includes/abstracts/class-wc-background-process.php
public function kill_process() {
if ( ! $this->is_queue_empty() ) {
$this->delete_all_batches();
wp_clear_scheduled_hook( $this->cron_hook_identifier );
}
}