// add custom job alerts schedules to cron
function jr_cron_add_custom_schedules() {
$schedules['ten_minutes'] = array (
'display' => __('Every Ten Minutes', APP_TD),
'interval' => 10*60,
);
$schedules['twenty_minutes'] = array (
'display' => __('Every Twenty Minutes', APP_TD),
'interval' => 20*60,
);
$schedules['thirty_minutes'] = array (
'display' => __('Every Thirty Minutes', APP_TD),
'interval' => 30*60,
);
$schedules['every_week'] = array (
'display' => __('Weekly', APP_TD),
'interval' => 60*60*24*7,
);
$schedules['every_month'] = array (
'display' => __('Monthly', APP_TD),
'interval' => 60*60*24*30,
);
return $schedules;
}
'options' => array(
'ten_minutes' => __('Every Ten Minutes', APP_TD),
'twenty_minutes' => __('Every Twenty Minutes', APP_TD),
'thirty_minutes' => __('Every Thirty Minutes', APP_TD),
'hourly' => __('Once Hourly', APP_TD),
'daily' => __('Once Daily', APP_TD),
'every_week' => __('Weekly', APP_TD),
'every_month' => __('Monthly', APP_TD),
)
There are currently 1 users browsing this thread. (0 members and 1 guests)