Magento 2 Certification Questions List | Create customer attribute programmatically 2

You need to programmatically create a new customer attribute.

What steps are required to do this?

Answer:
  • Save the attribute.
  • Specify the used_in_forms data for the attribute.
  • Create the attribute with MagentoEavSetupEavSetup::addAttribute
Prepear for Magento 2 certefication with our interactive quiz