How do I assign the order to a customer?
You can use “update_post_meta” to update customer id of the order
$orderid = 1; $userid = 1; update_post_meta($orderid, '_customer_user', $userid);
How do I assign the order to a customer?
You can use “update_post_meta” to update customer id of the order
$orderid = 1; $userid = 1; update_post_meta($orderid, '_customer_user', $userid);