Add/update attribute options programatically in Magento. Adding/Updating the attribute option values programmatically in Magento can be tedious sometimes. Adding attribute options through custom codes is not big deal but updating the values for already added attribute options is tricky enough. This article will let you know how to update options of Magento attributes.