title: WooCommerce auto restore stock on order cancel
body: <p>I'm looking for a solution to automatically restore stock when order is canceled. I'm using PayU gateway on my client's site and it works by setting all orders on hold when waiting for payment and cancels them after 24 hours if there's no valid payment made. However, this means that WooCommerce built-in mechanism for freezing stock and then restocking after given time doesn't work (as the payment gateway sets the status to on hold).</p>
  
  <p>There was a plugin called WooCommerce Auto Restore Stock by Gerhard Potgieter but it's an oldie and I was unable to find a similar solution in WordPress plugin repository or on Codecanyon.</p>
  
  <p>Perhaps someone stumbled upon a solution to auto restore stock for cancelled orders that works with WC 3.0+?</p>