Title: [Plugin: Import Users from CSV] Cron task and CSV Path
Last modified: August 21, 2016

---

# [Plugin: Import Users from CSV] Cron task and CSV Path

 *  Resolved [Narjhan](https://wordpress.org/support/users/narjhan/)
 * (@narjhan)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/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 ^^’
 * [http://wordpress.org/plugins/import-users-from-csv/](http://wordpress.org/plugins/import-users-from-csv/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Contributor [Ulrich Sossou](https://wordpress.org/support/users/sorich87/)
 * (@sorich87)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/plugin-import-users-from-csv-cron-task-and-csv-path/#post-3953519)
 * Yes, it looks good
 *  Thread Starter [Narjhan](https://wordpress.org/support/users/narjhan/)
 * (@narjhan)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/plugin-import-users-from-csv-cron-task-and-csv-path/#post-3953534)
 * Hello again. I’m sorry but i have some issues and the functions doesn’t work 
   on my server.
 * It is possible for you to explain me how it exactly work please ?
 * I’ll try to ask comprehensible question ^^’
 * IS_IU_Import_Users::import_csv( www/part/csv );
    For this line, i’m not sure 
   what is the best to do.
 * The racine of my website is www/part/
 * In part folder, there is the wordpress installation
    www/part/wp-admin/ www/part/
   wp-content/ etc…
 * I don’t know if it’s good to have a path like here or a direct path like this(
   [http://website.com/part/csv](http://website.com/part/csv) )
 * I don’t need to put the name of the csv file ? Like this www/part/csv/users.csv?
 * I’m very sorry for my questions but i’m totally lost and i don’t understand how
   the plugin and the additional function work.
 * Thank you.
 *  Plugin Contributor [Ulrich Sossou](https://wordpress.org/support/users/sorich87/)
 * (@sorich87)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/plugin-import-users-from-csv-cron-task-and-csv-path/#post-3953539)
 * Yes, you need to put the name of the CSV. This should work:
 * `IS_IU_Import_Users::import_csv( ABSPATH . 'csv/users.csv' );`
 * (ABSPATH is a constant that contains the path to the root of your WordPress install)
 * Je comprends francais.
 *  Thread Starter [Narjhan](https://wordpress.org/support/users/narjhan/)
 * (@narjhan)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/plugin-import-users-from-csv-cron-task-and-csv-path/#post-3953543)
 * Ok =) Thank you, it’s working.
 * I have another question, not about the plugin but, do you know how i can make
   a cron on wordpress for execute the import automaticlly every day at 00:01 ?
 *  Plugin Contributor [Ulrich Sossou](https://wordpress.org/support/users/sorich87/)
 * (@sorich87)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/plugin-import-users-from-csv-cron-task-and-csv-path/#post-3953544)
 * The first parameter passed to wp_schedule_event is the first time you want the
   event to occur. You will need to set it to the next day at 00:01:
 * `wp_schedule_event( strtotime('tomorrow 00:01'), 'daily', 'is_iu_daily_event');`

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.

 * ![](https://ps.w.org/import-users-from-csv/assets/icon-256x256.png?rev=2320381)
 * [Import Users from CSV](https://wordpress.org/plugins/import-users-from-csv/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/import-users-from-csv/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/import-users-from-csv/)
 * [Active Topics](https://wordpress.org/support/plugin/import-users-from-csv/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/import-users-from-csv/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/import-users-from-csv/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Ulrich Sossou](https://wordpress.org/support/users/sorich87/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/plugin-import-users-from-csv-cron-task-and-csv-path/#post-3953544)
 * Status: resolved