title: About update product stock status function in WooCommerce 3
body: <p>The deal is, I have to fix an error in a custom WooCommerce import plugin, which appeared after updating WC from 2.6 to 3.4. </p>
  
  <p>It uses the 'wc_update_product_stock_status' function, and used to pass post (product) id and it's stock status as it is represented in DB ('instock' and 'outofstock', as a string). But nowadays, as I can see in the WooCommerce docs (<a href="https://docs.woocommerce.com/wc-apidocs/function-wc_update_product_stock_status.html" rel="nofollow noreferrer">https://docs.woocommerce.com/wc-apidocs/function-wc_update_product_stock_status.html</a>) it accepts integer instead of string.</p>
  
  <p>So, the question is - what are those integers for in/out of stock values (1/0 did not fit).</p>