Auto change order status from hold-on to processing in Woocommerce
问题 I would like to change every order from woocommerce with the status 'HOLD-ON' to 'PROCESSING' with php . I already tried to write a function in the functions.php file but I failed. How can I auto change order status from "hold-on" to "processing" in Woocommerce? 回答1: To auto-process orders, you should try the following: add_action( 'woocommerce_thankyou', 'woocommerce_auto_processing_orders'); function woocommerce_auto_processing_orders( $order_id ) { if ( ! $order_id ) return; $order = wc