WC_Cart::get_customer() public WC 3.2.0
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 5.0.0
public function get_customer() {
return WC()->customer;
}