Garry Posted June 27, 2010 Share Posted June 27, 2010 (edited) Hi, I am ordering WHMCS tomorrow. But I will want to run a hook that runs after the account is created on the server. Do I need to use: AfterModuleCreate Also am I wanting to get a list of the variables, after looking on the forum, I have 2 questions. So the hook would look like: function tester($params) { echo "<pre>";print_r($params);echo"</pre>"; } add_hook("AfterModuleCreate",1,"tester",""); Now the question, how do I run it, do I just go direct the the hook like: whmcs/includes/hooks/tester.php ? The other question is, once I know the variable I want, do I just change the add_hook but to add_hook("AfterModuleCreate",1,"tester","Variable_Here"); Or would I code something like this in the script $cpanel_user = $vars['params']['username']; Edited June 27, 2010 by Garry 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.