Skip to content

Commit

Permalink
Set ip and user agent for order
Browse files Browse the repository at this point in the history
Closes #5
  • Loading branch information
bryceadams committed Nov 10, 2016
1 parent cf5db5c commit a548903
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions inc/generate.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,8 @@ public static function order( $from, $customer ) {
'customer_id' => absint( $user ),
'status' => $status,
'created_via' => 'wc-cyclone',
'customer_ip_address' => $faker->ipv4,
'customer_user_agent' => $faker->userAgent,
];
$order = wc_create_order($data);

Expand Down

0 comments on commit a548903

Please sign in to comment.