magento2-module-webhook
magento2-module-webhook copied to clipboard
Add 'created' webhooks
There's no native customer_create_after
event in magento so we'll have to use the customer_save_after
and check if the object is new or not.
I gave this a shot this evening but unfortunately the isObjectNew()
function is always false in the save_after
events. Will have to find another way :/
Use plugin instead of events. For example if you intercept ResourceModel::save method you can access to object->getId() method to know is it create or update event.