Automattic\WooCommerce\Internal\Admin

OrderTaxLookupMigrator::dequeue │ public │ WC 1.0

Stop the background rebuild.

Метод класса: OrderTaxLookupMigrator{}

Хуков нет.

Возвращает

string. Informative string to show after the tool is triggered in UI.

Использование

$OrderTaxLookupMigrator = new OrderTaxLookupMigrator();
$OrderTaxLookupMigrator->dequeue(): string;

Код OrderTaxLookupMigrator::dequeue() WC 11.2.2

public function dequeue(): string {
	$batch_processor = wc_get_container()->get( BatchProcessingController::class );

	if ( ! $batch_processor->is_enqueued( self::class ) ) {
		return __( 'Background process for rebuilding analytics tax data not started, nothing done.', 'woocommerce' );
	}

	$batch_processor->remove_processor( self::class );

	return __( 'Background process for rebuilding analytics tax data stopped.', 'woocommerce' );
}