Replies: 0
Hi
I want to create a new order and add a product to it, but for some reasons I don’t want to use Woocommerce classes and methods to do this. I know I can add a new order and its options by using the wp_insert_post and update_post_meta functions, but for adding a product, I don’t know where should I insert the information of product for current order. Please explain with an example.
Thanks