Automattic\WooCommerce\Internal\Admin

OrderTaxLookupMigrator::enqueue │ public │ WC 1.0

Start the background rebuild.

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

Хуков нет.

Возвращает

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

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

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

Код OrderTaxLookupMigrator::enqueue() WC 11.2.2

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

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

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

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