WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Schedulers

OrdersScheduler::import() public WC 1.0

Imports a single order or refund to update lookup tables for. If an error is encountered in one of the updates, a retry action is scheduled.

{} It's a method of the class: OrdersScheduler{}

No Hooks.

Return

null. Nothing.

Usage

$result = OrdersScheduler::import( $order_id );
$order_id(int) (required)
Order or refund ID.

Code of OrdersScheduler::import() WC 5.3.0

<?php
public static function import( $order_id ) {
	$order = wc_get_order( $order_id );

	// If the order isn't found for some reason, skip the sync.
	if ( ! $order ) {
		return;
	}

	$type = $order->get_type();

	// If the order isn't the right type, skip sync.
	if ( 'shop_order' !== $type && 'shop_order_refund' !== $type ) {
		return;
	}

	// If the order has no id or date created, skip sync.
	if ( ! $order->get_id() || ! $order->get_date_created() ) {
		return;
	}

	$results = array(
		OrdersStatsDataStore::sync_order( $order_id ),
		ProductsDataStore::sync_order_products( $order_id ),
		CouponsDataStore::sync_order_coupons( $order_id ),
		TaxesDataStore::sync_order_taxes( $order_id ),
		CustomersDataStore::sync_order_customer( $order_id ),
	);

	ReportsCache::invalidate();
}