DennisSkov

WHMCS DeleteClient example

Jan 15th, 2022
931
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. add_hook('AfterCronJob', 2, function (array $params) {
  4.     $command = 'DeleteClient';
  5.     $postData = array(
  6.         'clientid' => '1',
  7.         'deleteusers' => true,
  8.         'deletetransactions' => true,
  9.     );
  10.  
  11.     $results = localAPI($command, $postData);
  12.     print_r($results);
  13. });
RAW Paste Data