get_user_agent
This commit is contained in:
parent
0a0330bac0
commit
b8bf05df11
|
@ -149,7 +149,7 @@ class WC_REST_Orders_Controller extends WC_REST_Posts_Controller {
|
|||
'payment_method_title' => $order->get_payment_method_title(),
|
||||
'transaction_id' => $order->get_transaction_id(),
|
||||
'customer_ip_address' => $order->customer_ip_address,
|
||||
'customer_user_agent' => $order->get_user_id()_agent,
|
||||
'customer_user_agent' => $order->get_user_agent(),
|
||||
'created_via' => $order->created_via,
|
||||
'customer_note' => $order->customer_note,
|
||||
'date_completed' => wc_rest_prepare_date_response( $order->completed_date ),
|
||||
|
|
|
@ -163,7 +163,7 @@ class WC_API_Orders extends WC_API_Resource {
|
|||
),
|
||||
'note' => $order->customer_note,
|
||||
'customer_ip' => $order->customer_ip_address,
|
||||
'customer_user_agent' => $order->get_user_id()_agent,
|
||||
'customer_user_agent' => $order->get_user_agent(),
|
||||
'customer_id' => $order->get_user_id(),
|
||||
'view_order_url' => $order->get_view_order_url(),
|
||||
'line_items' => array(),
|
||||
|
|
|
@ -201,7 +201,7 @@ class WC_API_Orders extends WC_API_Resource {
|
|||
),
|
||||
'note' => $order->customer_note,
|
||||
'customer_ip' => $order->customer_ip_address,
|
||||
'customer_user_agent' => $order->get_user_id()_agent,
|
||||
'customer_user_agent' => $order->get_user_agent(),
|
||||
'customer_id' => $order->get_user_id(),
|
||||
'view_order_url' => $order->get_view_order_url(),
|
||||
'line_items' => array(),
|
||||
|
|
|
@ -207,7 +207,7 @@ class WC_API_Orders extends WC_API_Resource {
|
|||
),
|
||||
'note' => $order->customer_note,
|
||||
'customer_ip' => $order->customer_ip_address,
|
||||
'customer_user_agent' => $order->get_user_id()_agent,
|
||||
'customer_user_agent' => $order->get_user_agent(),
|
||||
'customer_id' => $order->get_user_id(),
|
||||
'view_order_url' => $order->get_view_order_url(),
|
||||
'line_items' => array(),
|
||||
|
|
|
@ -676,7 +676,7 @@ class WC_CLI_Order extends WC_CLI_Command {
|
|||
),
|
||||
'note' => $order->customer_note,
|
||||
'customer_ip' => $order->customer_ip_address,
|
||||
'customer_user_agent' => $order->get_user_id()_agent,
|
||||
'customer_user_agent' => $order->get_user_agent(),
|
||||
'customer_id' => $order->get_user_id(),
|
||||
'view_order_url' => $order->get_view_order_url(),
|
||||
'line_items' => array(),
|
||||
|
|
Loading…
Reference in New Issue