WC_Customer_Data_Store_Interface::get_last_order()publicWC 1.0

Gets the customers last order.

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

Хуков нет.

Возвращает

WC_Order|false.

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

$WC_Customer_Data_Store_Interface = new WC_Customer_Data_Store_Interface();
$WC_Customer_Data_Store_Interface->get_last_order( $customer );
$customer(WC_Customer) (обязательный) (передается по ссылке — &)
Customer object.

Код WC_Customer_Data_Store_Interface::get_last_order() WC 8.7.0

public function get_last_order( &$customer );