WordPress at a glance
function is not described

wc_get_order_id_by_order_item_id() WC 1.0

Get order ID by order item ID.

No Hooks.

Return

Int. Nothing.

Usage

wc_get_order_id_by_order_item_id( $item_id );
$item_id(int) (required)
Item ID.

Code of wc_get_order_id_by_order_item_id() WC 5.3.0

<?php
function wc_get_order_id_by_order_item_id( $item_id ) {
	$data_store = WC_Data_Store::load( 'order-item' );
	return $data_store->get_order_id_by_order_item_id( $item_id );
}