[API] Added order_key in orders response, closes #9823
This commit is contained in:
parent
77714623cf
commit
91e5381262
|
@ -161,6 +161,7 @@ class WC_API_Orders extends WC_API_Resource {
|
|||
$order_data = array(
|
||||
'id' => $order->id,
|
||||
'order_number' => $order->get_order_number(),
|
||||
'order_key' => $order->order_key,
|
||||
'created_at' => $this->server->format_datetime( $order_post->post_date_gmt ),
|
||||
'updated_at' => $this->server->format_datetime( $order_post->post_modified_gmt ),
|
||||
'completed_at' => $this->server->format_datetime( $order->completed_date, true ),
|
||||
|
|
Loading…
Reference in New Issue