new Kama_Cron([
'events' => array(
'wpkama_cron_func' => array(
'callback' => 'wpkama_cron_func',
'interval_name' => '1_min',
),
),
]);
function wpkama_cron_func(){
$id_test = get_the_ID();
$number_test = get_post_meta($id_test, 'test', true);
$number_test++;
update_post_meta($id_test, 'test', $number_test);}
new Kama_Cron([
'events' => array(
'wpkama_cron_func' => array(
'callback' => 'wpkama_cron_func',
'interval_name' => '1_min',
'interval_sec' => 60,
),
),
]);