Disable restocking if the order cancelled in WooCommerce

Disable restocking if the order cancelled in WooCommerce on child sites.

Snippet Type

Execute on Child Sites

Snippet

add_filter( 'woocommerce_can_restore_order_stock', '__return_false' );

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.