Is there any way to automatically update the order status of all the "Order Placed" to "Processing" after 2 days. Currently, this can be done manually from Woocommerce < Orders < Change order status.
For example - If a user placed an order it should automatically change status to processing after 2 days. I've tried this plugin name WunderAutomation, but unable to get the result. Plugin link - https://wordpress.org/plugins/wunderautomation/
Is there any WooCommerce expert out there who can share a code to change order status automatically?
Thanks for your help
Create a WordPress Cron for two days.
Create a hook for your function.
Schedule the hook using the WP Cron we setup above.
Create the function that is called in your hook.
WordPress Cron examples taken from WordPress Cron Handbook. You might want to look at the WC_Order documentation to see how to update an orders status.
This is completely not tested and will need to be adjusted based on specific needs. I don't use WordPress Cron very often, so there might be a thing or two I'm missing.