WP_Background_Process::is_process_running
Is process running
Check whether the current process is already running in a background process.
Method of the class: WP_Background_Process{}
No Hooks.
Returns
null. Nothing (null).
Usage
// protected - for code of main (parent) or child class $result = $this->is_process_running();
WP_Background_Process::is_process_running() WP Background Process::is process running code WC 10.3.6
protected function is_process_running() {
if ( get_site_transient( $this->identifier . '_process_lock' ) ) {
// Process already running.
return true;
}
return false;
}