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

  1. IQ_cron

 

  1. function at($array)

parametor

  1. time (22:00:00)
  2. function (function name)
  3. variable (if function required)
  4. 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');