


Your function does not need to have a special name but WHMCS developer advices you to use a hierarchy like starting with "hook_", followed by the filename, and then the particular action or task that hook is performing. In the "hooks.php" we need to create a hook function, explained as in the Doc. WHMCS is including this file directly, without any decleration to include, in to our module. Added by: LeandroSPFBL About 9 months ago. And here is the solution about my problem.Īfter we did the essential things to create an addon module, we are creating a new file in the module folder named "hooks.php". DemoTiger - Custom cPanel Branded Videos for cPanel - Support WHMCS, HostBill, Blesta, YouTube, etc. WHMCS uses Hooks for adding user codes between special html blocks. I have found the solution for reading more documents in WHMCS Documentation and some other places.įirst of all as i learnt, after WHMCS 4, developers changed some rules and WHMCS's smarties in the templates are not directly editable by the code anymore.
