Automattic\WooCommerce\Internal\BatchProcessing

BatchProcessingController::clear_processor_stateprivateWC 9.1.0

Removes the option where we store state for a given processor.

Method of the class: BatchProcessingController{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

Changelog

Since 9.1.0 Introduced.

BatchProcessingController::clear_processor_state() code WC 10.8.1

private function clear_processor_state( string $processor_class_name ): void {
	delete_option( $this->get_processor_state_option_name( $processor_class_name ) );
}