Voeg deze code toe aan functions.php van je thema of Code Snippets.


// reduce stock processing status orders
function reduce_stock_processing($order_id) {
wc_reduce_stock_levels($order_id);
}
add_action('woocommerce_order_status_processing', 'reduce_stock_processing');