How to use Cron on IQRA
Want a successful Modern site?
Start with IQRA training; it’s easy and quick to your needs.
How to use Cron on IQRA
- IQ_cron
- function at($array)
parametor
- time (22:00:00)
- function (function name)
-
variable (if function required)
- seconds (if you want to execute this on exact second)
function ep_cron(){
$IQ_con = new IQ_cron();
function ep_cron_exec(){
your code
}
$IQ_con->at(array('time'=>'24:00:00','function'=>'ep_cron_exec'));
}
add_action('IQ_cron','ep_cron');