Notice: You are browsing the documentation for PrestaShop 9, which is currently in development.

You might want to read the documentation for the current version, PrestaShop 8. Read the current version of this page

Hook actionCustomerAccountAdd

Informations

Successful customer account creation This hook is called when a new customer creates an account successfully
Hook actionCustomerAccountAdd
Locations
FO
Type action
Origin core
Aliases [createAccount]
Description This hook is called when a new customer creates an account successfully

Located in

Origin File
core classes/form/CustomerPersister.php

Parameters details

    <?php
    array(
      'newCustomer' => (object) Customer object
    );

Call of the Hook in the origin file

Hook::exec('actionCustomerAccountAdd', [
                'newCustomer' => $customer,
            ])