WP_Background_Process::is_process_running()protectedWC 1.0

Is process running

Check whether the current process is already running in a background process.

Method of the class: WP_Background_Process{}

No Hooks.

Return

null. Nothing (null).

Usage

// protected - for code of main (parent) or child class
$result = $this->is_process_running();

WP_Background_Process::is_process_running() code WC 8.6.1

protected function is_process_running() {
	if ( get_site_transient( $this->identifier . '_process_lock' ) ) {
		// Process already running.
		return true;
	}

	return false;
}