Automattic\WooCommerce\Admin\API\Reports\Import

Controller::get_import_status()publicWC 1.0

Get the status of the current import.

Method of the class: Controller{}

No Hooks.

Return

WP_Error|WP_REST_Response.

Usage

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

Controller::get_import_status() code WC 7.3.0

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 );
}