WordPress at Your Fingertips
function is not described

WC_Session::get_customer_id() public WC 1.0

Get customer ID.

{} It's a method of the class: WC_Session{}

No Hooks.

Return

Int.

Usage

$WC_Session = new WC_Session();
$WC_Session->get_customer_id();

Code of WC_Session::get_customer_id() WC 5.5.2

<?php
public function get_customer_id() {
	return $this->_customer_id;
}