WooCommerce Function of the Week: wc_get_held_stock_quantity
Welcome back to WooCommerce Function of the Week! This week we cover a little hidden gem within the WooCommerce plugin code: wc_get_held_stock_quantity(). As the name suggests, this function helps you get the amount of stock present in pending orders for a given product. If your store relies on careful stock management — maybe because you…














