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.
Использование
$OrderCouponDataMigrator = new OrderCouponDataMigrator(); $OrderCouponDataMigrator->enqueue(): string;
Код OrderCouponDataMigrator::enqueue() OrderCouponDataMigrator::enqueue WC 10.3.4
public 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' );
}