WC_Cart::get_customer()publicWC 3.2.0

Get cart's owner.

{} It's a 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.

Code of WC_Cart::get_customer() WC 6.7.0

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