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 );
		}
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.