I'm creating custom multi vendor script in my website. I've set authors (vendors) for woocommerce products and I want to set authors for orders too so I can determine which vendor's product sold.
I'm programmatically creating amazon and other market's orders so I can't use woocommerce thankyou function.
Simply I want to ask, how to hook into woocommerce order save function both works in frontend and backend?