Thanks Simon, I am using the 4.12, I had the additional parameter as shown in the changes for 4.12, I'll try it without:-
function client_signup($vars) {
//Create ventrino client account
$syspwd = 'xxxxx';
$url = 'http://www.ventrino.com/dev/client.php';
$postfields["system"] = "create_client";
$postfields["syspwd"] = md5($syspwd);
$postfields["name"] = $vars["FirstName"]." ".$vars["LastName"];
$postfields["email"] = $vars["Email"];
$postfields["password"] = $vars["Password"];
$postfields["whmcs_id"] = $vars["ID"];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields);
$results= curl_exec($ch);
curl_close($ch);
}
add_hook("ClientAdd",0,"client_signup");
I have placed it in includes/hooks/client_signup.php
Thanks,
Martyn