Automattic\WooCommerce\Internal\DataStores\Orders

OrdersTableDataStore::get_order_stock_reduced()publicWC 1.0

Helper getter for order_stock_reduced.

Method of the class: OrdersTableDataStore{}

No Hooks.

Return

true|false. Whether stock was reduced.

Usage

$OrdersTableDataStore = new OrdersTableDataStore();
$OrdersTableDataStore->get_order_stock_reduced( $order );
$order(\WC_Order) (required)
Order object.

OrdersTableDataStore::get_order_stock_reduced() code WC 7.1.0

public function get_order_stock_reduced( $order ) {
	return $this->get_stock_reduced( $order );
}