Import users from CSV with meta - Version 1.10.7.3

Version Description

  • Some of the plugins options are disabled by default to prevent unwanted mail sending
Download this release

Release Info

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

Code changes from version 1.10.7.1 to 1.10.7.3

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.10.7.1
7
  Author: codection
8
  Author URI: https://codection.com
9
  License: GPL2
@@ -57,10 +57,10 @@ function acui_activate(){
57
  add_option( "acui_mail_subject", __('Welcome to', 'import-users-from-csv-with-meta') . ' ' . get_bloginfo("name"), '', false );
58
  add_option( "acui_mail_body", __('Welcome,', 'import-users-from-csv-with-meta') . '<br/>' . __('Your data to login in this site is:', 'import-users-from-csv-with-meta') . '<br/><ul><li>' . __('URL to login', 'import-users-from-csv-with-meta') . ': **loginurl**</li><li>' . __( 'Username', 'import-users-from-csv-with-meta') . '= **username**</li><li>Password = **password**</li></ul>', '', false );
59
 
60
- add_option( "acui_cron_activated" );
61
- add_option( "acui_send_mail_cron" );
62
- add_option( "acui_send_mail_updated" );
63
- add_option( "acui_cron_delete_users" );
64
  add_option( "acui_cron_path_to_file" );
65
  add_option( "acui_cron_path_to_move" );
66
  add_option( "acui_cron_path_to_move_auto_rename" );
@@ -687,3 +687,7 @@ if (!function_exists('str_getcsv')) {
687
  function cod_set_html_content_type() {
688
  return 'text/html';
689
  }
 
 
 
 
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.10.7.3
7
  Author: codection
8
  Author URI: https://codection.com
9
  License: GPL2
57
  add_option( "acui_mail_subject", __('Welcome to', 'import-users-from-csv-with-meta') . ' ' . get_bloginfo("name"), '', false );
58
  add_option( "acui_mail_body", __('Welcome,', 'import-users-from-csv-with-meta') . '<br/>' . __('Your data to login in this site is:', 'import-users-from-csv-with-meta') . '<br/><ul><li>' . __('URL to login', 'import-users-from-csv-with-meta') . ': **loginurl**</li><li>' . __( 'Username', 'import-users-from-csv-with-meta') . '= **username**</li><li>Password = **password**</li></ul>', '', false );
59
 
60
+ add_option( "acui_cron_activated", false );
61
+ add_option( "acui_send_mail_cron", false );
62
+ add_option( "acui_send_mail_updated", false );
63
+ add_option( "acui_cron_delete_users", false );
64
  add_option( "acui_cron_path_to_file" );
65
  add_option( "acui_cron_path_to_move" );
66
  add_option( "acui_cron_path_to_move_auto_rename" );
687
  function cod_set_html_content_type() {
688
  return 'text/html';
689
  }
690
+
691
+ function acui_return_false(){
692
+ return false;
693
+ }
importer.php CHANGED
@@ -452,8 +452,8 @@ function acui_import_users( $file, $form_data, $attach_id = 0, $is_cron = false
452
  }
453
 
454
  if( !get_option('acui_automattic_wordpress_email') ){
455
- add_filter( 'send_email_change_email', '__return_false' );
456
- add_filter( 'send_password_change_email', '__return_false' );
457
  }
458
 
459
  $body_mail = wpautop( $body_mail );
@@ -477,8 +477,8 @@ function acui_import_users( $file, $form_data, $attach_id = 0, $is_cron = false
477
  remove_filter( 'wp_mail_content_type', 'cod_set_html_content_type' );
478
 
479
  if( !get_option('acui_automattic_wordpress_email') ){
480
- remove_filter( 'send_email_change_email', '__return_false' );
481
- remove_filter( 'send_password_change_email', '__return_false' );
482
  }
483
 
484
  endif;
@@ -523,8 +523,7 @@ function acui_import_users( $file, $form_data, $attach_id = 0, $is_cron = false
523
  <?php
524
  }
525
 
526
- function acui_options()
527
- {
528
  global $url_plugin;
529
 
530
  if ( !current_user_can('create_users') ) {
452
  }
453
 
454
  if( !get_option('acui_automattic_wordpress_email') ){
455
+ add_filter( 'send_email_change_email', 'acui_return_false', 999 );
456
+ add_filter( 'send_password_change_email', 'acui_return_false', 999 );
457
  }
458
 
459
  $body_mail = wpautop( $body_mail );
477
  remove_filter( 'wp_mail_content_type', 'cod_set_html_content_type' );
478
 
479
  if( !get_option('acui_automattic_wordpress_email') ){
480
+ remove_filter( 'send_email_change_email', 'acui_return_false', 999 );
481
+ remove_filter( 'send_password_change_email', 'acui_return_false', 999 );
482
  }
483
 
484
  endif;
523
  <?php
524
  }
525
 
526
+ function acui_options(){
 
527
  global $url_plugin;
528
 
529
  if ( !current_user_can('create_users') ) {
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://paypal.me/codection
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: 4.8
7
- Stable tag: 1.10.7.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -70,6 +70,12 @@ Plugin will automatically detect:
70
 
71
  == Changelog ==
72
 
 
 
 
 
 
 
73
  = 1.10.7.1 =
74
  * Sending mail in standard import bug solved, thanks to @manverupl for the error report.
75
 
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: 4.8
7
+ Stable tag: 1.10.7.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
70
 
71
  == Changelog ==
72
 
73
+ = 1.10.7.3 =
74
+ * Some of the plugins options are disabled by default to prevent unwanted mail sending
75
+
76
+ = 1.10.7.2 =
77
+ * Improve email notification disable
78
+
79
  = 1.10.7.1 =
80
  * Sending mail in standard import bug solved, thanks to @manverupl for the error report.
81