WC_Order_Item_Product_Data_Store_Interface{}WC 1.0

WC Order Item Data Store Interface

Functions that must be defined by order item store classes.

Хуков нет.

Использование

$WC_Order_Item_Product_Data_Store_Interface = new WC_Order_Item_Product_Data_Store_Interface();
// use class methods

Методы

  1. public get_download_ids( $item, $order )

Код WC_Order_Item_Product_Data_Store_Interface{} WC 6.4.1

interface WC_Order_Item_Product_Data_Store_Interface {
	/**
	 * Get a list of download IDs for a specific item from an order.
	 *
	 * @param WC_Order_Item $item Item object.
	 * @param WC_Order      $order Order object.
	 * @return array
	 */
	public function get_download_ids( $item, $order );
}