Skip to content

Commit

Permalink
Add missing shipping_company from internal props in data store
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejolley committed Apr 28, 2017
1 parent 25bca1c commit af09548
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions includes/data-stores/class-wc-customer-data-store.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ class WC_Customer_Data_Store extends WC_Data_Store_WP implements WC_Customer_Dat
'billing_email',
'shipping_first_name',
'shipping_last_name',
'shipping_company',
'wptests_capabilities',
'wptests_user_level',
'_order_count',
Expand Down Expand Up @@ -101,10 +102,10 @@ public function create( &$customer ) {

$customer->set_id( $id );
$this->update_user_meta( $customer );

// Prevent wp_update_user calls in the same request and customer trigger the 'Notice of Password Changed' email
$customer->set_password( '' );

wp_update_user( apply_filters( 'woocommerce_update_customer_args', array(
'ID' => $customer->get_id(),
'role' => $customer->get_role(),
Expand Down

0 comments on commit af09548

Please sign in to comment.