woocommerce_cancel_unpaid_orders filter is not working on live - Woocommerce
问题 The below code is working fine on localhost but is not working on live server The code is used to Mark all unpaid order as 'Failed' if the payment is not received even after 10 minutes of order creation The code is a modified version of code taken from Woocommerce plugin (line 852 to 877) // Unpaid orders marked as Failed if payment is not received even after 10 minutes of order creation function custom_wc_cancel_unpaid_orders() { $held_duration = strtotime( '-10 minutes'); $data_store = WC