WC_Cart::get_customer()publicWC 3.2.0

Get cart's owner.

Method of the class: WC_Cart{}

No Hooks.

Return

WC_Customer.

Usage

$WC_Cart = new WC_Cart();
$WC_Cart->get_customer();

Changelog

Since 3.2.0 Introduced.

WC_Cart::get_customer() code WC 9.0.1

public function get_customer() {
	return WC()->customer;
}