WC_Customer_Data_Store_Session::get_last_order()
Gets the customers last order.
Метод класса: WC_Customer_Data_Store_Session{}
Хуков нет.
Возвращает
WC_Order|false
.
Использование
$WC_Customer_Data_Store_Session = new WC_Customer_Data_Store_Session(); $WC_Customer_Data_Store_Session->get_last_order( $customer );
- $customer(WC_Customer) (обязательный) (передается по ссылке — &)
- Customer object.
Список изменений
С версии 3.0.0 | Введена. |
Код WC_Customer_Data_Store_Session::get_last_order() WC Customer Data Store Session::get last order WC 8.7.0
public function get_last_order( &$customer ) { return false; }