Warning: You are browsing the documentation for PrestaShop 8, which is outdated.
You might want to read an updated version of this page for the current version, PrestaShop 9. Read the updated version of this page
| Hook | actionCustomerAccountAdd | 
|---|---|
| Locations | FO  | 
| Type | action | 
| Origin | core | 
| Aliases | [createAccount] | 
| Description | This hook is called when a new customer creates an account successfully | 
| Origin | File | 
|---|---|
| core | classes/form/CustomerPersister.php | 
    <?php
    array(
      'newCustomer' => (object) Customer object
    );
Hook::exec('actionCustomerAccountAdd', [
                'newCustomer' => $customer,
            ])