add_filter( 'cron_schedules', 'my_corn_schedules');
function my_corn_schedules(){
return array(
'per_minute' => array(
'interval' => 60,
'display' => 'Every Mintue'
)
);
}
Interval is how many seconds in between. And display is an value for naming the interval or custom cron interval. Remember that when you are creating a cron job with the built in cron function in Wordpress, the cron job triggers by a user when the user is visiting your website.
No comments:
Post a Comment