WC_Customer_Data_Store_Session::get_last_order()publicWC 3.0.0

Gets the customers last order.

Method of the class: WC_Customer_Data_Store_Session{}

No Hooks.

Return

WC_Order|false.

Usage

$WC_Customer_Data_Store_Session = new WC_Customer_Data_Store_Session();
$WC_Customer_Data_Store_Session->get_last_order( $customer );
$customer(WC_Customer) (required) (passed by reference — &)
Customer object.

Changelog

Since 3.0.0 Introduced.

WC_Customer_Data_Store_Session::get_last_order() code WC 8.6.1

public function get_last_order( &$customer ) {
	return false;
}