Rocketboy235 Posted June 4, 2019 Share Posted June 4, 2019 Hello everyone! First time posting here... I was trying to learn how to understand how WHMCS hooks work but I'm still having trouble figuring that out. How does one exactly have the hook run? I see how to kind of create them but not sure how to test or run them. I looked through here: https://developers.whmcs.com/hooks/ but I felt that it was too descriptive enough on how it all works and all the syntax. I guess it uses php so there's that. My goal is to get a better understanding of hooks and am trying to customize the front home page to display the services/products that are currently for sale. Thanks in advance! 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 5, 2019 Share Posted June 5, 2019 On 04/06/2019 at 07:11, Rocketboy235 said: How does one exactly have the hook run? specific hooks automatically run on specific pages or triggered by specific events... you don't need to make them run. On 04/06/2019 at 07:11, Rocketboy235 said: I see how to kind of create them but not sure how to test or run them. create your code, make sure you've chosen the correct hook that will be triggered for your purpose (E.g ClientAreaPage will run automatically on every page in the client area) On 04/06/2019 at 07:11, Rocketboy235 said: My goal is to get a better understanding of hooks and am trying to customize the front home page to display the services/products that are currently for sale. perhaps do a search here for ClientAreaPage, or perhaps in your above example, ClientAreaPageHome (as that hook is triggered only on the homepages), and you should find many example hooks... examine them, take them apart, play with them and you should learn a lot by experimenting with them. 1 Quote Link to comment Share on other sites More sharing options...
Rocketboy235 Posted June 6, 2019 Author Share Posted June 6, 2019 Thank you brian! I shall traverse the forums and see what I can find. Also noticed I said "too" instead of "not", sorry for the slight confusion there but you knew what I meant anyway. 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.