<?php
hooks()->addAction('customer_model_customer_aftersave', function(Customer $model) {
if ($customer->scenario != 'register') {
return;
}
// do whatever with $customer, like send the data to a url.
});
Sure, it is all the info related to the current customer that has just registered.Can you tell me what values the $customer variable holds?
$customer->email; // will give you the email,
$customer->first_name; // first name
$customer->last_name; // last name
$customer->status; // status