📜  magento 2 删除自定义属性 - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:19.398000             🧑  作者: Mango

代码示例1
$eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);
 $eavSetup->removeAttribute(\Magento\Customer\Model\Customer::ENTITY, 'custom-attribute-code');