Zepx Posted December 29, 2010 Share Posted December 29, 2010 Hello, I'm quite new to WHMCS, and looking to create some customization to fit my needs. Before I begin, I had some questions in mind which I could now find my answer. I've read the documentation and had a look at Hooks and API, but I was wondering, 1. I've seen some hooks using functions available from WHMCS itself. The thing is, I do not know where I can have a look at such function. Is there a documentation on this? An example of function I'm talking about is full_query(). 2. Also, I find it hard to understand the functions of the hooks sometime. For example, AfterCreateModule, at which point does this hook come in? After the product has been activated? 3. With regards to my 2nd question, I was trying to figure out what $params in hooks was sent, but it doesn't seem to print out anything... am I doing something wrong with the following lines of code? <?php function example($params) { echo '<pre>'; print_r($params); echo '</pre>'; } add_hook("AfterModuleCreate", 1, "example"); ?> I'm sorry, but I just can't find enough information after hours of searching... 0 Quote Link to comment Share on other sites More sharing options...
mbouclas Posted December 30, 2010 Share Posted December 30, 2010 i got the same problem. Documentation is poor and testing on a live site is not the easiest of tasks. If anyone can point us to some sort of explanation on when each hook is triggered would be great 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.