WooCommerce: Change order status based on custom Meta Value
I'm trying to run the following function daily, to auto-complete all processing order older than 10 days and who have a specific custom meta value. I'm using the following snippet, however this will simply not work. Any idea as to…