WordPress at Your Fingertips
function is not described

WC_Background_Process::kill_process() public WC 1.0

Kill process.

Stop processing queue items, clear cronjob and delete all batches.

{} It's a method of the class: WC_Background_Process{}

No Hooks.

Return

null. Nothing.

Usage

$WC_Background_Process = new WC_Background_Process();
$WC_Background_Process->kill_process();

Code of WC_Background_Process::kill_process() WC 5.5.2

<?php
public function kill_process() {
	if ( ! $this->is_queue_empty() ) {
		$this->delete_all_batches();
		wp_clear_scheduled_hook( $this->cron_hook_identifier );
	}
}