Sample Hook

/includes/hooks/example.php

<?php
  /*** Example Hook Function
   * The code in this hook is commented out by default. Uncomment to use.
   * @package    WHASOLS
   * @author     WHASOLS Limited <development@whasols.com>
   * @copyright  Copyright (c) WHASOLS Limited 2022
   * @license    https://whasols.com/license/ WHASOLS Eula
   * @version    $Id$
   * @link       https://whasols.com/
   */
   if ( ! defined('WHASOLS')) exit('No direct script access allowed');
     add_hook('ClientAdd', 1, function($arg=[])
      {
        $user_id = $arg['user_id'];
        $username = $arg['username'];
        $first_name = $arg['first_name'];
        $last_name = $arg['last_name'];
        $email = $arg['email'];
        $company_name = $arg['company_name'];
        $phonenumber = $arg['phonenumber'];
        // Run code to create remote forum account here...
      });

For a full list of available or given hooks, please refer to the Hooks Index.