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?
To auto-process orders, you should try the following:
Code goes in function.php file of your active child theme (or theme).