Import users from CSV with meta - Version 1.14.2.10

Version Description

  • Change period was not working if you did not deactivate first the cron job, now it is solved and you can do it without deactivating cron job
Download this release

Release Info

Developer carazo
Plugin Icon 128x128 Import users from CSV with meta
Version 1.14.2.10
Comparing to
See all releases

Code changes from version 1.14.2.9 to 1.14.2.10

Files changed (2) hide show
  1. import-users-from-csv-with-meta.php +11 -5
  2. readme.txt +4 -1
import-users-from-csv-with-meta.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Import users from CSV with meta
4
  Plugin URI: https://www.codection.com
5
  Description: This plugins allows to import users using CSV files to WP database automatically
6
- Version: 1.14.2.9
7
  Author: codection
8
  Author URI: https://codection.com
9
  License: GPL2
@@ -408,13 +408,19 @@ function acui_manage_cron_process( $form_data ){
408
  if( isset( $form_data["cron-activated"] ) && $form_data["cron-activated"] == "yes" ){
409
  update_option( "acui_cron_activated", true );
410
 
411
- if( !$next_timestamp ) {
412
- wp_schedule_event( time(), $period, 'acui_cron_process' );
413
- }
 
 
 
 
 
 
414
  }
415
  else{
416
  update_option( "acui_cron_activated", false );
417
- wp_unschedule_event( $next_timestamp, 'acui_cron_process');
418
  }
419
 
420
  update_option( "acui_cron_send_mail", isset( $form_data["send-mail-cron"] ) && $form_data["send-mail-cron"] == "yes" );
3
  Plugin Name: Import users from CSV with meta
4
  Plugin URI: https://www.codection.com
5
  Description: This plugins allows to import users using CSV files to WP database automatically
6
+ Version: 1.14.2.10
7
  Author: codection
8
  Author URI: https://codection.com
9
  License: GPL2
408
  if( isset( $form_data["cron-activated"] ) && $form_data["cron-activated"] == "yes" ){
409
  update_option( "acui_cron_activated", true );
410
 
411
+ $old_period = get_option( "acui_cron_period" );
412
+
413
+ if( $old_period != $period ){
414
+ wp_unschedule_event( $next_timestamp, 'acui_cron_process');
415
+ wp_schedule_event( time(), $period, 'acui_cron_process' );
416
+ }
417
+ elseif( !$next_timestamp ) {
418
+ wp_schedule_event( time(), $period, 'acui_cron_process' );
419
+ }
420
  }
421
  else{
422
  update_option( "acui_cron_activated", false );
423
+ wp_unschedule_event( $next_timestamp, 'acui_cron_process');
424
  }
425
 
426
  update_option( "acui_cron_send_mail", isset( $form_data["send-mail-cron"] ) && $form_data["send-mail-cron"] == "yes" );
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://codection.com/go/donate-import-users-from-csv-with-meta/
4
  Tags: csv, import, importer, meta data, meta, user, users, user meta, editor, profile, custom, fields, delimiter, update, insert
5
  Requires at least: 3.4
6
  Tested up to: 5.2.1
7
- Stable tag: 1.14.2.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -91,6 +91,9 @@ Plugin will automatically detect:
91
 
92
  == Changelog ==
93
 
 
 
 
94
  = 1.14.2.9 =
95
  * Role default problem fixed thanks for all the one who notice the bug
96
 
4
  Tags: csv, import, importer, meta data, meta, user, users, user meta, editor, profile, custom, fields, delimiter, update, insert
5
  Requires at least: 3.4
6
  Tested up to: 5.2.1
7
+ Stable tag: 1.14.2.10
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
91
 
92
  == Changelog ==
93
 
94
+ = 1.14.2.10 =
95
+ * Change period was not working if you did not deactivate first the cron job, now it is solved and you can do it without deactivating cron job
96
+
97
  = 1.14.2.9 =
98
  * Role default problem fixed thanks for all the one who notice the bug
99