我正在使用WooCommerce REST API(http://woocommerce.github.io/woocommerce-rest-api-docs/#introduction)并使用他们的示例在结帐页面添加了一个新字段(shipping_phone):
这个新字段显示在结帐页面上,我可以填充这个并保存到我的订单 - 这是它在WordPress管理页面中显示的顺序:
我现在正尝试使用此GET请求下载包含shipping_phone数据的订单:
/wp-json/wc/v1/orders/3454
但shipping_phone字段不包含在下载的字段中 . 这是GET响应中的Shipping字段:
"shipping": {
"address_1": "45 Jones Road",
"address_2": "",
"city": "Bondi",
"company": "BS Consulting Pty Ltd",
"country": "AU",
"first_name": "Betty",
"last_name": "Sanders",
"postcode": "2026",
"state": "NSW"
},
它也不位于JSON数据中的任何其他位置 . 如何获取包含此新自定义字段的订单的GET请求?