Automattic\WooCommerce\Internal
OrderCouponDataMigrator::enqueue()
Start the background process for coupon data conversion.
Метод класса: OrderCouponDataMigrator{}
Хуков нет.
Возвращает
Строку
. Informative string to show after the tool is triggered in UI.
Использование
// private - только в коде основоного (родительского) класса $result = $this->enqueue(): string;
Код OrderCouponDataMigrator::enqueue() OrderCouponDataMigrator::enqueue WC 9.5.1
private function enqueue(): string { $batch_processor = wc_get_container()->get( BatchProcessingController::class ); if ( $batch_processor->is_enqueued( self::class ) ) { return __( 'Background process for coupon meta conversion already started, nothing done.', 'woocommerce' ); } $batch_processor->enqueue_processor( self::class ); return __( 'Background process for coupon meta conversion started', 'woocommerce' ); }