Automattic\WooCommerce\Internal\BatchProcessing

BatchProcessingController::dequeue_processor()privateWC 1.0

Dequeue a processor once it has no more items pending processing.

Method of the class: BatchProcessingController{}

No Hooks.

Return

null. Nothing.

Usage

// private - for code of main (parent) class only
$result = $this->dequeue_processor( $processor_class_name ): void;
$processor_class_name(string) (required)
Full processor class name.

BatchProcessingController::dequeue_processor() code WC 7.1.0

private function dequeue_processor( string $processor_class_name ): void {
	$pending_processes = $this->get_enqueued_processors();
	if ( in_array( $processor_class_name, $pending_processes, true ) ) {
		$pending_processes = array_diff( $pending_processes, array( $processor_class_name ) );
		$this->set_enqueued_processors( $pending_processes );
	}
}