Automattic\WooCommerce\Internal
OrderCouponDataMigrator::dequeue()
Stop the background process for coupon data conversion.
Метод класса: OrderCouponDataMigrator{}
Хуков нет.
Возвращает
Строку
. Informative string to show after the tool is triggered in UI.
Использование
$OrderCouponDataMigrator = new OrderCouponDataMigrator(); $OrderCouponDataMigrator->dequeue(): string;
Код OrderCouponDataMigrator::dequeue() OrderCouponDataMigrator::dequeue WC 9.7.1
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' ); }