WC_Order_Item::get_order_id()
Get order ID this meta belongs to.
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'
WC_Order_Item::get_order_id() WC Order Item::get order id code WC 8.7.0
public function get_order_id( $context = 'view' ) { return $this->get_prop( 'order_id', $context ); }