Noptin_Background_Process::cancel_process()

Cancel Process


Description Description

Stop processing queue items, clear cronjob and delete batch.


Top ↑

Source Source

File: includes/class-noptin-background-process.php

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

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

				wp_clear_scheduled_hook( $this->cron_hook_identifier );
			}

		}


Top ↑

User Contributed Notes User Contributed Notes

30 day money back guarantee
Safe & Secure online payment
Custom CSS Slide Example
Custom Animation Example
Default Animation