woocommerce/includes/data-stores/interfaces/class-wc-order-item-data-st...

24 lines
514 B
PHP
Raw Normal View History

2016-11-18 11:34:02 +00:00
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* WC Order Item Data Store Interface
*
* 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 {
/**
* 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
*/
public function add_order_item( $order_id, $item );
2016-11-18 11:34:02 +00:00
}