includes/api/class-wc-rest-customers-controller.php 1 location
|
@@ 388-390 (lines=3) @@
|
| 385 |
|
} |
| 386 |
|
|
| 387 |
|
// Customer email. |
| 388 |
|
if ( isset( $request['email'] ) ) { |
| 389 |
|
wp_update_user( array( 'ID' => $customer->ID, 'user_email' => sanitize_email( $request['email'] ) ) ); |
| 390 |
|
} |
| 391 |
|
|
| 392 |
|
// Customer password. |
| 393 |
|
if ( isset( $request['password'] ) ) { |
includes/cli/class-wc-cli-customer.php 1 location
|
@@ 481-483 (lines=3) @@
|
| 478 |
|
$data = apply_filters( 'woocommerce_cli_update_customer_data', $data ); |
| 479 |
|
|
| 480 |
|
// Customer email. |
| 481 |
|
if ( isset( $data['email'] ) ) { |
| 482 |
|
wp_update_user( array( 'ID' => $user['id'], 'user_email' => sanitize_email( $data['email'] ) ) ); |
| 483 |
|
} |
| 484 |
|
|
| 485 |
|
// Customer password. |
| 486 |
|
if ( isset( $data['password'] ) ) { |