2016-11-18 11:34:02 +00:00
|
|
|
<?php
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
|
|
exit;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* WC Order Item Data Store Interface
|
|
|
|
*
|
2016-11-21 19:38:07 +00:00
|
|
|
* Functions that must be defined by the order item data store (for functions).
|
2016-11-18 11:34:02 +00:00
|
|
|
*
|
|
|
|
* @version 2.7.0
|
|
|
|
* @category Interface
|
|
|
|
* @author WooCommerce
|
|
|
|
*/
|
|
|
|
interface WC_Order_Item_Data_Store_Interface {
|
|
|
|
/**
|
2016-11-21 19:38:07 +00:00
|
|
|
* Add an order item to an order.
|
|
|
|
* @param int $order_id
|
|
|
|
* @param array $item. order_item_name and order_item_type.
|
|
|
|
* @return int Order Item ID
|
2016-11-18 11:34:02 +00:00
|
|
|
*/
|
2016-11-21 19:38:07 +00:00
|
|
|
public function add_order_item( $order_id, $item );
|
2016-11-18 11:34:02 +00:00
|
|
|
}
|