Import Export WordPress Users and WooCommerce Customers - Version 1.4.0

Version Description

  • Tested OK with WC 4.0.1
  • Improvement:-'wt_hashed' column name changed to 'wt_hash' in csv.
Download this release

Release Info

Developer webtoffee
Plugin Icon 128x128 Import Export WordPress Users and WooCommerce Customers
Version 1.4.0
Comparing to
See all releases

Code changes from version 1.3.9 to 1.4.0

Sample_Users.csv CHANGED
@@ -1,2 +1,2 @@
1
- ID,user_login,user_pass,wt_hashed,user_nicename,user_email,user_url,user_registered,display_name,first_name,last_name,user_status,roles
2
  9,Mark,$P$By6K6/oknjRBovyyxs3sCDogZgO6ST1,no,mark,mark@webtoffee.com,http://www.webtoffee.com,2016-10-20 11:52:04,Mark,Mark,Wough,,"subscriber, customer"
1
+ ID,user_login,user_pass,wt_hash,user_nicename,user_email,user_url,user_registered,display_name,first_name,last_name,user_status,roles
2
  9,Mark,$P$By6K6/oknjRBovyyxs3sCDogZgO6ST1,no,mark,mark@webtoffee.com,http://www.webtoffee.com,2016-10-20 11:52:04,Mark,Mark,Wough,,"subscriber, customer"
includes/exporter/class-wf-customerimpexpcsv-exporter.php CHANGED
@@ -128,7 +128,10 @@ class WF_CustomerImpExpCsv_Exporter {
128
  unset($customer_data[$key]);
129
  }
130
  }
131
- $customer_data['wt_hashed'] = 'no';
 
 
 
132
  /*
133
  * CSV Customer Export Row.
134
  * Filter the individual row data for the customer export
128
  unset($customer_data[$key]);
129
  }
130
  }
131
+
132
+ if(in_array("wt_hash", $export_columns)){
133
+ $customer_data['wt_hash'] = 'no';
134
+ }
135
  /*
136
  * CSV Customer Export Row.
137
  * Filter the individual row data for the customer export
includes/exporter/data/data-wf-post-columns.php CHANGED
@@ -8,7 +8,7 @@ $columns = array(
8
  'ID' => 'ID',
9
  'user_login' => 'user_login',
10
  'user_pass' => 'user_pass',
11
- 'wt_hashed' => 'wt_hashed',
12
  'user_nicename' => 'user_nicename',
13
  'user_email' => 'user_email',
14
  'user_url' => 'user_url',
8
  'ID' => 'ID',
9
  'user_login' => 'user_login',
10
  'user_pass' => 'user_pass',
11
+ 'wt_hash' => 'wt_hash',
12
  'user_nicename' => 'user_nicename',
13
  'user_email' => 'user_email',
14
  'user_url' => 'user_url',
includes/importer/class-wf-csv-parser.php CHANGED
@@ -19,7 +19,7 @@ class WF_CSV_Parser {
19
  'ID' => 'ID',
20
  'user_login' => 'user_login',
21
  'user_pass' => 'user_pass',
22
- 'wt_hashed' => 'wt_hashed',
23
  'user_nicename' => 'user_nicename',
24
  'user_email' => 'user_email',
25
  'user_url' => 'user_url',
19
  'ID' => 'ID',
20
  'user_login' => 'user_login',
21
  'user_pass' => 'user_pass',
22
+ 'wt_hash' => 'wt_hash',
23
  'user_nicename' => 'user_nicename',
24
  'user_email' => 'user_email',
25
  'user_url' => 'user_url',
includes/importer/class-wf-customerimpexpcsv-customer-import.php CHANGED
@@ -567,7 +567,7 @@ class WF_CustomerImpExpCsv_Customer_Import extends WP_Importer {
567
  $username = (!empty($data['user_details']['user_login']) ) ? $data['user_details']['user_login'] : '';
568
  $customer_id = (!empty($data['user_details']['ID']) ) ? $data['user_details']['ID'] : '';
569
  if (!empty($data['user_details']['user_pass'])) {
570
- $password = (isset($data['user_details']['wt_hashed']) && (strtolower( $data['user_details']['wt_hashed'])=='no' ) )? $data['user_details']['user_pass'] : wp_hash_password($data['user_details']['user_pass']);
571
  $password_generated = false;
572
  } else {
573
  $password = wp_generate_password(12, true);
567
  $username = (!empty($data['user_details']['user_login']) ) ? $data['user_details']['user_login'] : '';
568
  $customer_id = (!empty($data['user_details']['ID']) ) ? $data['user_details']['ID'] : '';
569
  if (!empty($data['user_details']['user_pass'])) {
570
+ $password = (isset($data['user_details']['wt_hash']) && (strtolower( $data['user_details']['wt_hash'])=='no' ) )? $data['user_details']['user_pass'] : wp_hash_password($data['user_details']['user_pass']);
571
  $password_generated = false;
572
  } else {
573
  $password = wp_generate_password(12, true);
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.webtoffee.com/plugins/
4
  Tags: user import, user export, export customers, import customers, export users to csv, import users from csv, woocommerce export customers, export import users, woocommerce import customers, woocommerce export customer email
5
  Requires at least: 3.0.1
6
  Tested up to: 5.3.2
7
- Stable tag: 1.3.9
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -19,7 +19,7 @@ Import users and export users made fast and simple! Import Export WordPress User
19
 
20
  &#128312; Users Export - Export Users to CSV file.</li>
21
  &#128312; Users import - Import Users from CSV format to WordPress/WooCommerce Store.
22
- &#128312; Tested OK with WooCommerce 3.9.2
23
  &#128312; Tested OK with PHP 7.3.5
24
 
25
  Highlights: WordPress Users Export, WordPress Users CSV Import Suite, Export WordPress Users to CSV. Pro Version supports export and import of all additional user meta like WooCommerce details.
@@ -158,6 +158,9 @@ By default, admin and store manager are given access to export users. Please vis
158
 
159
  == Changelog ==
160
 
 
 
 
161
  = 1.3.9 =
162
  * [Improvement] Security
163
  = 1.3.8 =
4
  Tags: user import, user export, export customers, import customers, export users to csv, import users from csv, woocommerce export customers, export import users, woocommerce import customers, woocommerce export customer email
5
  Requires at least: 3.0.1
6
  Tested up to: 5.3.2
7
+ Stable tag: 1.4.0
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
19
 
20
  &#128312; Users Export - Export Users to CSV file.</li>
21
  &#128312; Users import - Import Users from CSV format to WordPress/WooCommerce Store.
22
+ &#128312; Tested OK with WooCommerce 4.0.1
23
  &#128312; Tested OK with PHP 7.3.5
24
 
25
  Highlights: WordPress Users Export, WordPress Users CSV Import Suite, Export WordPress Users to CSV. Pro Version supports export and import of all additional user meta like WooCommerce details.
158
 
159
  == Changelog ==
160
 
161
+ = 1.4.0 =
162
+ * Tested OK with WC 4.0.1
163
+ * Improvement:-'wt_hashed' column name changed to 'wt_hash' in csv.
164
  = 1.3.9 =
165
  * [Improvement] Security
166
  = 1.3.8 =
users-customers-import-export-for-wp-woocommerce.php CHANGED
@@ -6,8 +6,8 @@
6
  Description: Export and Import User/Customers details From and To your WordPress/WooCommerce.
7
  Author: WebToffee
8
  Author URI: https://www.webtoffee.com/product/wordpress-users-woocommerce-customers-import-export/
9
- Version: 1.3.9
10
- WC tested up to: 3.9.2
11
  Text Domain: users-customers-import-export-for-wp-woocommerce
12
  License: GPLv3
13
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
@@ -36,7 +36,7 @@ if( !defined('WF_CUSTOMER_IMP_EXP_ID') )
36
 
37
  if( !defined('WF_CUSTOMER_IMP_EXP_VERSION') )
38
  {
39
- define("WF_CUSTOMER_IMP_EXP_VERSION", "1.3.9");
40
  }
41
 
42
 
6
  Description: Export and Import User/Customers details From and To your WordPress/WooCommerce.
7
  Author: WebToffee
8
  Author URI: https://www.webtoffee.com/product/wordpress-users-woocommerce-customers-import-export/
9
+ Version: 1.4.0
10
+ WC tested up to: 4.0.1
11
  Text Domain: users-customers-import-export-for-wp-woocommerce
12
  License: GPLv3
13
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
36
 
37
  if( !defined('WF_CUSTOMER_IMP_EXP_VERSION') )
38
  {
39
+ define("WF_CUSTOMER_IMP_EXP_VERSION", "1.4.0");
40
  }
41
 
42