[Plugin: Import Users from CSV] Cron task and CSV Path
-
Hello.
Sorry for my english, i’m french speaking.
I have seen the topic about cron task but i don’t understand how it work.
i have just added this on my functions.php theme file
function is_iu_schedule_event() {
if ( ! wp_next_scheduled( 'is_iu_daily_event' ) ) {
wp_schedule_event( time(), 'hourly', 'is_iu_daily_event' );
}
}
add_action( 'wp', 'is_iu_schedule_event' );function is_iu_do_this_daily() {
IS_IU_Import_Users::import_csv( www/part/csv );
}
add_action( 'is_iu_daily_event', 'is_iu_do_this_daily' );It is good ?
Thank you & sorry for my noob question ^^’
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘[Plugin: Import Users from CSV] Cron task and CSV Path’ is closed to new replies.