Automattic\WooCommerce\Internal\DataStores\Orders

OrdersTableDataStore::set_order_stock_reduced()publicWC 1.0

Helper setter for order_stock_reduced.

Метод класса: OrdersTableDataStore{}

No Hooks.

Return

null. Nothing.

Usage

$OrdersTableDataStore = new OrdersTableDataStore();
$OrdersTableDataStore->set_order_stock_reduced( $order, $set );
$order(\WC_Order) (required)
Order ID or order object.
$set(true|false) (required)
Whether stock was reduced.

Code of OrdersTableDataStore::set_order_stock_reduced() WC 7.1.0

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