WordPress at Your Fingertips
function is not described

WC_Order_Item_Product::set_quantity() public WC 1.0

Set quantity.

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

No Hooks.

Return

null. Nothing.

Usage

$WC_Order_Item_Product = new WC_Order_Item_Product();
$WC_Order_Item_Product->set_quantity( $value );
$value(int) (required)
Quantity.

Code of WC_Order_Item_Product::set_quantity() WC 5.7.1

public function set_quantity( $value ) {
	$this->set_prop( 'quantity', wc_stock_amount( $value ) );
}