WC_Cart::get_customer
Get cart's owner.
Метод класса: WC_Cart{}
Хуков нет.
Возвращает
\WC_Customer.
Использование
$WC_Cart = new WC_Cart(); $WC_Cart->get_customer();
Список изменений
| С версии 3.2.0 | Введена. |
Код WC_Cart::get_customer() WC Cart::get customer WC 10.7.0
public function get_customer() {
return WC()->customer;
}