WC_Order_Data_Store_CPT::set_order_stock_reduced()publicWC 1.0

Gets information about whether stock was reduced.

Method of the class: WC_Order_Data_Store_CPT{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Order_Data_Store_CPT = new WC_Order_Data_Store_CPT();
$WC_Order_Data_Store_CPT->set_order_stock_reduced( $order, $set );
$order(WC_Order|int) (required)
Order ID or order object.
$set(true|false) (required)
True or false.

WC_Order_Data_Store_CPT::set_order_stock_reduced() code WC 9.4.2

public function set_order_stock_reduced( $order, $set ) {
	$this->set_stock_reduced( $order, $set );
}