Tribe__Process__Queue::cancel_process()

Cancels the current process.

Contents

Stops processing queue items and clean up.


Source

File: src/Tribe/Process/Queue.php

	public function cancel_process() {
		if ( ! $this->is_queue_empty() ) {
			$batch = $this->get_batch();

			$this->delete( $batch->key );

			wp_clear_scheduled_hook( $this->healthcheck_cron_hook_id );
		}

	}

Top ↑

Changelog

Changelog
Version Description
4.9.5 Introduced.