WC_Session::get_customer_id
Get customer ID. If the session is not initialized, returns an empty string.
Метод класса: WC_Session{}
Хуков нет.
Возвращает
Строку.
Использование
$WC_Session = new WC_Session(); $WC_Session->get_customer_id();
Код WC_Session::get_customer_id() WC Session::get customer id WC 10.5.2
public function get_customer_id() {
return $this->_customer_id ?? '';
}