BP_Background_Process::kill_process()

Kill process.

Description

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

Source

File: bp-core/classes/class-bp-background-process.php

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

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.