get_user_agent

This commit is contained in:
Mike Jolley 2016-08-05 16:10:45 +01:00
parent 0a0330bac0
commit b8bf05df11
5 changed files with 5 additions and 5 deletions

View File

@ -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 ),

View File

@ -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(),

View File

@ -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(),

View File

@ -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(),

View File

@ -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(),