Updated: compatibility with Woocommerce version 3+. You have missing the function to display this custom field value on the order edit page:
orders fields for an order programmatically, as each admin custom order field is ...
So, besides first code block which you have provided, bellow I am adding all rest of the code which is required to show the new field on backend in 'Order Details' ...
Add custom data to order page with WooCommerce session. Product can
Is there a way for us to create a custom field at checkout that is a list. The data needs to be pulled from the user table and show list of users who's roles are custom ...
How to add custom fields to your WooCommerce products - an easy to
The new field ID is “license_no“, which will be useful to remember in parts 2 and 3. /**. * @snippet Add Custom Field @ WooCommerce Checkout ...
I will also discuss how you could add these custom fields to order emails. WooCommerce Remove Additional Information from Custom Checkout ...
Adding cart item data programmatically. As part of this, we'll look at adding custom fields to WooCommerce products.
Want to customize and add fields to your checkout? Learn how to add custom fields to the checkout page in WooCommerce programmatically.