Sorry for the necropost
Not sure if it cwp allows to print some output from the hooks. However the hooks described here:
https://wiki.centos-webpanel.com/action-hookswork for me.
Here is a simple example (just a bit modified example provided by docs):
cat /usr/local/cwpsrv/htdocs/resources/admin/hooks/account/account_new.php
<?php
function account_new($array){
$fp = fopen('/tmp/account_new.txt', 'w');
fwrite($fp, print_r($array, TRUE));
fclose($fp);
}
?>
then create some account and review the file /tmp/account_new.txt.