Tag Archives: magento2 customer attribute

To save custom customer attribute in magento 2, follow the below Sample Code Snippet. For Illustration Purpose the object manager is called directly and the CustomerRepositoryInterface class is instantiated. But in Real time the code structure will differ, the dependencies has to be injected via the constructor. [crayon-5b7296762c4cd