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...