Noptin_Background_Process::handle_cron_healthcheck()

Handle cron healthcheck


Description Description

Restart the background process if not already running and data exists in the queue.


Top ↑

Source Source

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

		public function handle_cron_healthcheck() {
			if ( $this->is_process_running() ) {
				// Background process already running.
				exit;
			}

			if ( $this->is_queue_empty() ) {
				// No data to process.
				$this->clear_scheduled_event();
				exit;
			}

			$this->handle();

			exit;
		}


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