Question

I intend to make a call to an API endpoint after a customer's profile information, such as name, date of birth, etc, are updated. The update can be done either by the admin through the admin panel or by the user himself through his account on the frontend.

I'm very new to Magento2. I read up on Magento2 modules and if I understood correctly, it seems like I could do this by hooking up my method with the relevant core classes in the di.xml and create my own after*() method. If this is the case, which are the classes and methods should I be hooking up with to do something after a customer's profile information is updated?

Was it helpful?

Solution

Following class is responsible for update customer information from frontend my account Go to class

Check execute() method.

This line is responsible for save/update customer information

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top