WC_Session::get_customer_id()publicWC 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 6.8.2

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