WC_Order_Item::get_order_id()publicWC 1.0

Get order ID this meta belongs to.

Метод класса: WC_Order_Item{}

Хуков нет.

Возвращает

int.

Использование

$WC_Order_Item = new WC_Order_Item();
$WC_Order_Item->get_order_id( $context );
$context(строка)
What the value is for. Valid values are 'view' and 'edit'.
По умолчанию: 'view'

Код WC_Order_Item::get_order_id() WC 8.7.0

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