Automattic\WooCommerce\Internal\Admin
OrderTaxLookupMigrator::dequeue
Stop 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->dequeue(): string;
OrderTaxLookupMigrator::dequeue() OrderTaxLookupMigrator::dequeue code WC 11.2.1
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' );
}