WooCommerce manipulate stock reduce by ID

  php, woocommerce

Is there away to manipulate the reduce stock in WooCommerce?

For example
If ID 2342 is purchased reduce stock from ID 567

I tried something with wc_update_product_stock(); but the result is not clear.

Source: Ask PHP

LEAVE A COMMENT