Magento 2 Certification Questions List | Create new customer attribute programatically

You need to programatically create a new customer attribute that would be editable in admin panel. What steps are required to do this? (choose 2)

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