Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WHMCS how to add function to the system's cron job?

Tags:

php

cron

whmcs

I created an addon for whmcs in whmcs/modules/addons directory which I want to run it by the system's cron job. WHMCS's cron job uses this:

php -q /var/www/html/whmcs/whmcs/admin/cron.php

to automate module functions (suspension, termination) and billing settings.

Any ideas to add function to automate my addon using the same cron job while cron.php is encrypted?

like image 492
Lamya Elmorsy Avatar asked Oct 17 '25 15:10

Lamya Elmorsy


1 Answers

Just in case you are still looking at this in 2018, docs have changed, you can find DailyCronJob docs here: https://developers.whmcs.com/hooks-reference/cron/#dailycronjob

Also here you can find an entry point for modules creation in WHMCS: https://developers.whmcs.com/modules/

like image 109
MasterKitano Avatar answered Oct 19 '25 04:10

MasterKitano



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!