WordPress at Your Fingertips
function is not described

WC_Order_Item::get_order_id() public WC 1.0

Get order ID this meta belongs to.

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

No Hooks.

Return

Int.

Usage

$WC_Order_Item = new WC_Order_Item();
$WC_Order_Item->get_order_id( $context );
$context(string)
What the value is for. Valid values are 'view' and 'edit'.
Default: 'view'

Code of WC_Order_Item::get_order_id() WC 5.6.0

public function get_order_id( $context = 'view' ) {
	return $this->get_prop( 'order_id', $context );
}