Automattic\WooCommerce\Internal\Admin
OrderTaxLookupMigrator::enqueue
Start the background rebuild.
Метод класса: OrderTaxLookupMigrator{}
Хуков нет.
Возвращает
string. Informative string to show after the tool is triggered in UI.
Использование
$OrderTaxLookupMigrator = new OrderTaxLookupMigrator(); $OrderTaxLookupMigrator->enqueue(): string;
Код OrderTaxLookupMigrator::enqueue() OrderTaxLookupMigrator::enqueue WC 11.2.2
public function enqueue(): string {
$batch_processor = wc_get_container()->get( BatchProcessingController::class );
if ( $batch_processor->is_enqueued( self::class ) ) {
return __( 'Background process for rebuilding analytics tax data already started, nothing done.', 'woocommerce' );
}
$batch_processor->enqueue_processor( self::class );
return __( 'Background process for rebuilding analytics tax data started.', 'woocommerce' );
}