Manually create an order with a product ID woocommerce
I think you can use the following: $order->update_meta_data( ‘YOUR_META_KEY_HERE’, $note ); Remember to replace YOUR_META_KEY_HERE with your preferred key, Complete code: add_action( ‘gform_after_submission_56’, ‘post_to_third_party’, 10, 2 ); function post_to_third_party( $entry, $form ) { global $woocommerce; // use this to find out $entry output var_dump($entry); // Make sure to add hidden field somewhere in the form … Read more