Event on a site member post approving

Hi, all.
How can I subscribe on event when a site member was approved (manual/automatic)? I need to execute a some custom code after this event happened.
Thank you.

Hi,

I suggest to use afterInsert() hook function on your members collection.
Inside this method you can subscribe the event.
View this article for more details: https://support.wix.com/en/article/corvid-using-data-hooks
API : https://www.wix.com/corvid/reference/wix-data.Hooks.html

Best,
Sapir

Hi Sapir.
Is the function ‘insert’ called on user was approved or/and on was signed-up?