Order item class. Implemented by classes using the same CRUD(s) pattern. Interfaces, Classes and Traits. ArrayAccess ...
WC_Order_Item_Product inherits from WC_Order_Item, which has get_order_id() , so you can get the Order ID with $order_item->get_order_id ...
includes/class-wc-order-item-product.php : 15. Order item product class. Implemented by classes using the same CRUD(s) pattern.
Update (For WooCommerce 3+). Now for the code you can use WC_Order_Item_Product (and WC_Product ) methods instead, like:
@ param int|object|array $item ID to load from the DB, or WC_Order_Item object. */.
WC_Order_Item::get_name Get order item name. woocommerce.
@package WooCommerce\Classes
This method is defined within the class WC_Order_Item . Each meta is formatted into an array that contains: key – the value of the meta_key ...
woocommerce/includes/class-wc-order-item-fee.php. Go to file.
$meta The meta object. * @param WC_Order_Item $item The order item object. * @return string The title.