CrunchyToast Posted November 30, 2017 Share Posted November 30, 2017 Hey everyone, Working on a few different modules and had a couple questions. Is there an action hook that allows you to run a cron job every time the WHMCS is called? For example, my WHMCS cron file runs every 5 minutes. Is there a hook or a way I could have a custom hook or script run every time the actual cron runs? All the hooks I see currently only run once a day. Is there a way to add another tab to the client detail page in the admin panel via hook or another method without having to customize the template? Thank you ahead of time. Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted November 30, 2017 Share Posted November 30, 2017 16 hours ago, CrunchyToast said: Is there an action hook that allows you to run a cron job every time the WHMCS is called? For example, my WHMCS cron file runs every 5 minutes. Is there a hook or a way I could have a custom hook or script run every time the actual cron runs? All the hooks I see currently only run once a day. There isn't a hook, no, the cron is designed to run certain tasks at certain points of the day from V7 upwards you can run it every 5 minutes for the tasks that require more frequent running, can you tell me what you are trying to have run every time WHMCS runs? Link to comment Share on other sites More sharing options...
CrunchyToast Posted December 1, 2017 Author Share Posted December 1, 2017 Specifically, one of my plugins would require a cron script to run every 5 minutes or so. Instead of having the user add it manually, I was wanting to see if it could just be added and ran that often by a built in hook or function. Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted December 1, 2017 Share Posted December 1, 2017 Hi CrunchyToast, Adding a cron manually would be the most viable option Link to comment Share on other sites More sharing options...
CrunchyToast Posted December 2, 2017 Author Share Posted December 2, 2017 Okay. Thank you. Any info on the 2nd question? Link to comment Share on other sites More sharing options...
Recommended Posts