WordPress at Your Fingertips
function is not described

WC_Cart::get_customer() public WC 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 5.7.1

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