How to add a custom field to WooCommerce checkout page

How to modify the WooCommerce API orders response?

How to modify the WordPress REST API posts response

The WordPress REST API is a great thing, but in most cases you need to extend it. For example, if you use Advanced Custom Fields and you need to get them via the API, then you need to modify the response. Here’s a quick example…