people standing on stage with lights turned on during night time

Make Restock refunded items unchecked by default

A quick one to automatically uncheck the “Restock refunded items” in the WooCommerce Order Admin by default. Doing this can save a few human errors in certain circumsances.

Simply add this to your functions or plugin file

add_filter('woocommerce_restock_refunded_items', '__return_false');

 

Refs:

https://github.com/woocommerce/woocommerce/pull/21314
https://ivetetecedor.com/how-to-disable-woocommerce-restock-refunded/


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.