WC_Abstract_Order_Data_Store_Interface::delete_items()publicWC 1.0

Remove all line items (products, coupons, shipping, taxes) from the order.

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

Хуков нет.

Возвращает

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

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

$WC_Abstract_Order_Data_Store_Interface = new WC_Abstract_Order_Data_Store_Interface();
$WC_Abstract_Order_Data_Store_Interface->delete_items( $order, $type );
$order(WC_Order) (обязательный)
Order object.
$type(строка)
Order item type.
По умолчанию: null

Код WC_Abstract_Order_Data_Store_Interface::delete_items() WC 8.7.0

public function delete_items( $order, $type = null );