woocommerce auto restore stock quanitiy hook when order refund -


i need woocommerce auto restore stock quanitiy hook when order refund please 1 regarding tried 2 hooks

 add_action( 'woocommerce_product_set_stock','action_woocommerce_variation_set_stock', 10, 1 ); add_action( 'woocommerce_variation_set_stock', 'action_woocommerce_variation_set_stock', 10, 1 ); 

but these hook work on frontend when product stock quantity decrease on order

please solve issue


Comments

Popular posts from this blog

'hasOwnProperty' in javascript -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -