WordPress at Your Fingertips
function is not described

WC_Order_Item::set_order_id() public WC 1.0

Set order ID.

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

No Hooks.

Return

null. Nothing.

Usage

$WC_Order_Item = new WC_Order_Item();
$WC_Order_Item->set_order_id( $value );
$value(int) (required)
Order ID.

Code of WC_Order_Item::set_order_id() WC 5.7.0

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