WC_Order::set_customer_id()publicWC 1.0

Set customer id.

Method of the class: WC_Order{}

No Hooks.

Return

null. 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 8.7.0

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