WordPress at Your Fingertips
function is not described

WC_Order::set_customer_id() public WC 1.0

Set customer id.

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

No Hooks.

Return

null. Nothing.

Usage

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

Code of WC_Order::set_customer_id() WC 5.8.0

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