Adding custom attribute to customers for Magento 2 extensions
To let a Magento 2 extension add a custom attribute to customers, use the following code:

It is necessary to pay extra attention to the visible parameter that becomes the value of the is_visible column from the customer_eav_attribute table.
Set it to true and the attribute will be displayed in the admin customer form.
