Prevent WooCommerce orders timing out

If you need your unpaid invoices to stick around after 30 days you can stop the automatic cancellation by inserting the following code snippet into your functions.php file located in the main directory of your WordPress theme:

remove_action( 'woocommerce_cancel_unpaid_orders', 'wc_cancel_unpaid_orders' );

 

Leave a Comment