Import users from CSV with meta - Version 1.17.1.4

Version Description

  • Roles are always managed as small letters to minimize problems writing them
  • Fixed bug exporting metadata that are objects
  • Included new filter in prepare export value
Download this release

Release Info

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

Code changes from version 1.17.1.3 to 1.17.1.4

classes/export.php CHANGED
@@ -140,11 +140,12 @@ class ACUI_Exporter{
140
  public static function prepare( $key, $value, $datetime_format, $user = 0 ){
141
  $timestamp_keys = apply_filters( 'acui_export_timestamp_keys', array( 'wc_last_active' ) );
142
  $non_date_keys = apply_filters( 'acui_export_non_date_keys', array() );
 
143
 
144
  if( $key == 'role' ){
145
  return self::get_role( $user );
146
  }
147
- if( is_array( $value ) ){
148
  return serialize( $value );
149
  }
150
  elseif( in_array( $key, $non_date_keys ) || empty( $datetime_format ) ){
@@ -157,7 +158,7 @@ class ACUI_Exporter{
157
  return date( $datetime_format, $value );
158
  }
159
  else{
160
- return self::clean_bad_characters_formulas( $value );
161
  }
162
  }
163
 
140
  public static function prepare( $key, $value, $datetime_format, $user = 0 ){
141
  $timestamp_keys = apply_filters( 'acui_export_timestamp_keys', array( 'wc_last_active' ) );
142
  $non_date_keys = apply_filters( 'acui_export_non_date_keys', array() );
143
+ $original_value = $value;
144
 
145
  if( $key == 'role' ){
146
  return self::get_role( $user );
147
  }
148
+ if( is_array( $value ) || is_object( $value ) ){
149
  return serialize( $value );
150
  }
151
  elseif( in_array( $key, $non_date_keys ) || empty( $datetime_format ) ){
158
  return date( $datetime_format, $value );
159
  }
160
  else{
161
+ return apply_filters( 'acui_export_prepare', self::clean_bad_characters_formulas( $value ), $original_value );
162
  }
163
  }
164
 
classes/import.php CHANGED
@@ -322,6 +322,7 @@ class ACUI_Import{
322
  $roles_cells = array( $roles_cells );
323
 
324
  array_walk( $roles_cells, 'trim' );
 
325
  $role = $roles_cells;
326
  }
327
 
322
  $roles_cells = array( $roles_cells );
323
 
324
  array_walk( $roles_cells, 'trim' );
325
+ array_walk( $roles_cells, 'strtolower' );
326
  $role = $roles_cells;
327
  }
328
 
import-users-from-csv-with-meta.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Import and export users and customers
4
  Plugin URI: https://www.codection.com
5
  Description: Using this plugin you will be able to import and export users or customers choosing many options and interacting with lots of other plugins
6
- Version: 1.17.1.3
7
  Author: codection
8
  Author URI: https://codection.com
9
  License: GPL2
@@ -11,6 +11,7 @@ License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
  Text Domain: import-users-from-csv-with-meta
12
  Domain Path: /languages
13
  */
 
14
  if ( ! defined( 'ABSPATH' ) )
15
  exit;
16
 
3
  Plugin Name: Import and export users and customers
4
  Plugin URI: https://www.codection.com
5
  Description: Using this plugin you will be able to import and export users or customers choosing many options and interacting with lots of other plugins
6
+ Version: 1.17.1.4
7
  Author: codection
8
  Author URI: https://codection.com
9
  License: GPL2
11
  Text Domain: import-users-from-csv-with-meta
12
  Domain Path: /languages
13
  */
14
+
15
  if ( ! defined( 'ABSPATH' ) )
16
  exit;
17
 
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.6
7
- Stable tag: 1.17.1.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -12,7 +12,7 @@ Import and export users and customers using CSV files including custom user meta
12
 
13
  == Description ==
14
 
15
- Clean and easy-to-use Import users plugin. It includes custom user meta to be included automatically from a CSV file and delimitation auto-detector. It also is able to send a mail to each user imported and all the meta data imported is ready to edit into user profile.
16
 
17
  * Import CSV file with users directly to your WordPress or customers into WooCommerce
18
  * Import thousends of users or customers in only some seconds
@@ -103,9 +103,13 @@ Plugin will automatically detect:
103
 
104
  == Changelog ==
105
 
 
 
 
 
 
106
  = 1.17.1.3 =
107
  * Fixed bug in mail templates when wp_editor is disabled
108
- * Included action links
109
 
110
  = 1.17.1.2 =
111
  * In multisite, default role is subscriber if this is not set
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.6
7
+ Stable tag: 1.17.1.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
12
 
13
  == Description ==
14
 
15
+ Clean and easy-to-use import and export users and customer plugin, for WordPress and WooCommerce. It includes custom user meta to be included automatically from a CSV file and delimitation auto-detector. It also is able to send a mail to each user imported and all the meta data imported is ready to edit into user profile.
16
 
17
  * Import CSV file with users directly to your WordPress or customers into WooCommerce
18
  * Import thousends of users or customers in only some seconds
103
 
104
  == Changelog ==
105
 
106
+ = 1.17.1.4 =
107
+ * Roles are always managed as small letters to minimize problems writing them
108
+ * Fixed bug exporting metadata that are objects
109
+ * Included new filter in prepare export value
110
+
111
  = 1.17.1.3 =
112
  * Fixed bug in mail templates when wp_editor is disabled
 
113
 
114
  = 1.17.1.2 =
115
  * In multisite, default role is subscriber if this is not set