WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\API\Reports\Import

Controller::get_import_status() public WC 1.0

Get the status of the current import.

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

No Hooks.

Return

WP_Error|WP_REST_Response. Nothing.

Usage

$Controller = new Controller();
$Controller->get_import_status( $request );
$request(WP_REST_Request) (required)
Request data.

Code of Controller::get_import_status() WC 5.2.2

<?php
public function get_import_status( $request ) {
	$result   = ReportsSync::get_import_stats();
	$response = $this->prepare_item_for_response( $result, $request );
	$data     = $this->prepare_response_for_collection( $response );

	return rest_ensure_response( $data );
}