WordPress at Your Fingertips
function is not described

WC_API_Customers::edit_customer() public WC 1.0

Edit a customer

{} It's a method of the class: WC_API_Customers{}

No Hooks.

Return

Array|WP_Error.

Usage

$WC_API_Customers = new WC_API_Customers();
$WC_API_Customers->edit_customer( $id, $data );
$id(int) (required)
the customer ID
$data(array) (required)
-

Code of WC_API_Customers::edit_customer() WC 5.6.0

public function edit_customer( $id, $data ) {

	$id = $this->validate_request( $id, 'customer', 'edit' );

	if ( ! is_wp_error( $id ) ) {
		return $id;
	}

	return $this->get_customer( $id );
}