martyn1 Posted December 8, 2009 Share Posted December 8, 2009 I have upgraded to 4.12 from 3.x and read about actionhooks at http://wiki.whmcs.com/Version_4.0_Release_Notes#Action_Hooks In the old method I added a number of functions that were called by the hooks, can I do the same with this new method? Here's some pseudo code for the new method, would this work?:- function actionhook_ClientSignup($vars) { if($vars["FirstName"] == "Tiger") do_something_wild($vars); } add_hook("ClientAdd",0,"actionhook_ClientSignup",""); function do_something_wild($vars) { // Code to handle wild customer orders } Thanks, Martyn 0 Quote Link to comment Share on other sites More sharing options...
martyn1 Posted December 9, 2009 Author Share Posted December 9, 2009 I can answer this one for myself now. In brief its a no, however, a kludgy work around is to include('myfile.php') them. 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.