I have been developing some plugin code for my registration form in Craft 3.
The event will be
EVENT_AFTER_SAVE_ELEMENT, but I do not know how to detect if it is a new user or not.
In Craft 2, the way was
It would be grateful for me if someone tell me how to do it.