Does anyone know if it's possible to unregister an event observer programatically? I have an observer on
newsletter_subscribe_save_after that updates a custom attribute in the customer model but when the customer record is saved it triggers off the
customer_save_after event defined in
Mage_All.xml which then re-saves the newsletter subscription status resulting in an infinite loop that then triggers the PHP recursion error due to nesting 100 times.
Ideally I'd like to unregister the
customer_save_after event only when my observer fires.