Jump to content

Questions on Functions, Hooks & API


Zepx

Recommended Posts

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated