WC_Order_Item_Type_Data_Store_Interface::save_item_data()publicWC 1.0

Saves an item's data to the database / item meta. Ran after both create and update, so $item->get_id() will be set.

Метод класса: WC_Order_Item_Type_Data_Store_Interface{}

Хуков нет.

Возвращает

null. Ничего (null).

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

$WC_Order_Item_Type_Data_Store_Interface = new WC_Order_Item_Type_Data_Store_Interface();
$WC_Order_Item_Type_Data_Store_Interface->save_item_data( $item );
$item(WC_Order_Item) (обязательный) (передается по ссылке — &)
Item object.

Код WC_Order_Item_Type_Data_Store_Interface::save_item_data() WC 8.7.0

public function save_item_data( &$item );