WC_Abstract_Order_Data_Store_Interface::read_items()publicWC 1.0

Read order items of a specific type from the database for this order.

Method of the class: WC_Abstract_Order_Data_Store_Interface{}

No Hooks.

Return

Array.

Usage

$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) (required)
Order object.
$type(string) (required)
Order item type.

WC_Abstract_Order_Data_Store_Interface::read_items() code WC 9.4.2

public function read_items( $order, $type );