WordPress at Your Fingertips
function is not described

WC_Customer::get_last_order() public WC 1.0

Gets the customers last order.

{} It's a method of the class: WC_Customer{}

No Hooks.

Return

WC_Order|false.

Usage

$WC_Customer = new WC_Customer();
$WC_Customer->get_last_order();

Code of WC_Customer::get_last_order() WC 5.9.0

public function get_last_order() {
	return $this->data_store->get_last_order( $this );
}