WC_Abstract_Order_Data_Store_Interface::read_items()
Read order items of a specific type from the database for this order.
Метод класса: WC_Abstract_Order_Data_Store_Interface{}
Хуков нет.
Возвращает
Массив
.
Использование
$WC_Abstract_Order_Data_Store_Interface = new WC_Abstract_Order_Data_Store_Interface(); $WC_Abstract_Order_Data_Store_Interface->read_items( $order, $type );
- $order(WC_Order) (обязательный)
- Order object.
- $type(строка) (обязательный)
- Order item type.
Код WC_Abstract_Order_Data_Store_Interface::read_items() WC Abstract Order Data Store Interface::read items WC 8.7.0
public function read_items( $order, $type );