WC_Order::reduce_order_stock function is deprecated
-
Hi, thanks for the plugin.
As mentioned in a previous topic (https://www.ads-software.com/support/topic/reduce_order_stock-is-deprecated/),
The WC_Order::reduce_order_stock function is deprecated since version 3.0. Replace with wc_reduce_stock_levels.
Plugin file wc-ot.php needs to be updated to replace:
$order->reduce_order_stock();
with
wc_reduce_stock_levels( $order_id );
Not a big deal at the moment but please consider updating the plugin before it becomes officially deprecated.
- The topic ‘WC_Order::reduce_order_stock function is deprecated’ is closed to new replies.