includes/api/class-wc-rest-customers-controller.php 1 location
|
@@ 393-395 (lines=3) @@
|
390 |
|
} |
391 |
|
|
392 |
|
// Customer password. |
393 |
|
if ( isset( $request['password'] ) ) { |
394 |
|
wp_update_user( array( 'ID' => $customer->ID, 'user_pass' => wc_clean( $request['password'] ) ) ); |
395 |
|
} |
396 |
|
|
397 |
|
$this->update_additional_fields_for_object( $customer, $request ); |
398 |
|
|
includes/cli/class-wc-cli-customer.php 1 location
|
@@ 486-488 (lines=3) @@
|
483 |
|
} |
484 |
|
|
485 |
|
// Customer password. |
486 |
|
if ( isset( $data['password'] ) ) { |
487 |
|
wp_update_user( array( 'ID' => $user['id'], 'user_pass' => wc_clean( $data['password'] ) ) ); |
488 |
|
} |
489 |
|
|
490 |
|
// Update customer data. |
491 |
|
$this->update_customer_data( $user['id'], $data ); |