protected function update_customer_data( $id, $data, $customer ) {

        // Customer first name.
        if ( isset( $data['first_name'] ) ) {
            $customer->set_first_name( wc_clean( $data['first_name'] ) );