PDA

View Full Version : action hook question



lonea
01-28-10, 12:23 PM
I'm trying to use the action hook but the whmcs documentation does not mention of this.

I'm wondering is it all I have to do is place the php file inside the action hook folder in order for me to use the action hook?

Anything else I need to get whmcs to notice the new file I place in ? or whmcs automatically load all files in the action hook folder.

rmccny
01-28-10, 12:56 PM
The documentation pretty much explains it all. Yes you create your file with the code you want to use in the hook and place in the hooks directory. You essentially create a function to act on a particular hook then pass it as a parameter to add_hook. http://wiki.whmcs.com/Action_Hooks