_queue_lock_time

_queue_lock_time

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wp-stateless.4.1.2

apply_filters('_queue_lock_time') is found 1 times:

  • /lib/ns-vendor/classes/deliciousbrains/wp-background-processing/classes/wp-background-process.php line 404
    	protected function lock_process() {
    		$this->start_time = time(); // Set start time of current process.
    
    		$lock_duration = ( property_exists( $this, 'queue_lock_time' ) ) ? $this->queue_lock_time : 60; // 1 minute
    		$lock_duration = apply_filters( $this->identifier . '_queue_lock_time', $lock_duration );
    
    		set_site_transient( $this->identifier . '_process_lock', microtime(), $lock_duration );
    	}
    
    	/**
    	 * Unlock process.