• 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.

    • This topic was modified 2 years, 2 months ago by Mary Ace.
  • The topic ‘WC_Order::reduce_order_stock function is deprecated’ is closed to new replies.