WC_Order::set_customer_id │ public │ WC 1.0

Set customer id.

Method of the class: WC_Order{}

No Hooks.

Returns

void. Nothing (null).

Usage

$WC_Order = new WC_Order();
$WC_Order->set_customer_id( $value );
$value(int) (required)
Customer ID.

WC_Order::set_customer_id() code WC 11.2.1

public function set_customer_id( $value ) {
	$this->set_prop( 'customer_id', absint( $value ) );
}