Automattic\WooCommerce\Internal\Admin
OrderTaxLookupMigrator::enqueue
Start the background rebuild.
Method of the class: OrderTaxLookupMigrator{}
No Hooks.
Returns
string. Informative string to show after the tool is triggered in UI.
Usage
$OrderTaxLookupMigrator = new OrderTaxLookupMigrator(); $OrderTaxLookupMigrator->enqueue(): string;
OrderTaxLookupMigrator::enqueue() OrderTaxLookupMigrator::enqueue code WC 11.3.0
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' );
}