Automattic\WooCommerce\Internal
OrderCouponDataMigrator::dequeue
Stop the background process for coupon data conversion.
Method of the class: OrderCouponDataMigrator{}
No Hooks.
Returns
String. Informative string to show after the tool is triggered in UI.
Usage
$OrderCouponDataMigrator = new OrderCouponDataMigrator(); $OrderCouponDataMigrator->dequeue(): string;
OrderCouponDataMigrator::dequeue() OrderCouponDataMigrator::dequeue code WC 10.9.4
public function dequeue(): string {
$batch_processor = wc_get_container()->get( BatchProcessingController::class );
if ( ! $batch_processor->is_enqueued( self::class ) ) {
return __( 'Background process for coupon meta conversion not started, nothing done.', 'woocommerce' );
}
$batch_processor->remove_processor( self::class );
return __( 'Background process for coupon meta conversion stopped', 'woocommerce' );
}