WC_Order_Item::get_order_id
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 Order Item::get order id WC 10.3.4
public function get_order_id( $context = 'view' ) {
return $this->get_prop( 'order_id', $context );
}