Rest Api Get / Update Order Custom Field for Woocommerce

You can extend the Rest API response with some code like: add_action( ‘rest_api_init’, ‘your_custom_register_api_fields’ ); function your_custom_register_api_fields() {         register_rest_field( ‘shop_order’,’your_custom_field‘,         array(             ‘get_callback’    => ‘your_custom_api_meta_callback’,        …

Read More