WC_Cart::get_customer
Get cart's owner.
Method of the class: WC_Cart{}
No Hooks.
Returns
\WC_Customer.
Usage
$WC_Cart = new WC_Cart(); $WC_Cart->get_customer();
Changelog
| Since 3.2.0 | Introduced. |
WC_Cart::get_customer() WC Cart::get customer code WC 10.7.0
public function get_customer() {
return WC()->customer;
}