WordPress at a glance
function is not described

WC_REST_Customers_V2_Controller::update_customer_meta_fields() protected WC 1.0

Update customer meta fields.

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

No Hooks.

Return

null. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->update_customer_meta_fields( $customer, $request );
$customer(WC_Customer) (required)
Customer data.
$request(WP_REST_Request) (required)
Request data.

Code of WC_REST_Customers_V2_Controller::update_customer_meta_fields() WC 5.2.2

<?php
protected function update_customer_meta_fields( $customer, $request ) {
	parent::update_customer_meta_fields( $customer, $request );

	// Meta data.
	if ( isset( $request['meta_data'] ) ) {
		if ( is_array( $request['meta_data'] ) ) {
			foreach ( $request['meta_data'] as $meta ) {
				$customer->update_meta_data( $meta['key'], $meta['value'], isset( $meta['id'] ) ? $meta['id'] : '' );
			}
		}
	}
}