WC_Order_Item_Type_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_Type_Data_Store_Interface = new WC_Order_Item_Type_Data_Store_Interface();
// use class methods

Методы

  1. public save_item_data( &$item )

Код WC_Order_Item_Type_Data_Store_Interface{} WC 6.4.1

interface WC_Order_Item_Type_Data_Store_Interface {
	/**
	 * Saves an item's data to the database / item meta.
	 * Ran after both create and update, so $item->get_id() will be set.
	 *
	 * @param WC_Order_Item $item Item object.
	 */
	public function save_item_data( &$item );
}