Import Export WordPress Users and WooCommerce Customers - Version 2.3.4

Version Description

2022-08-30 = * Bugfix: Duplicate export button on user listing page when both Pro and Free versions are active. * Bugfix: Uncaught Error: Class 'Wt_Import_Export_For_Woo_History' * WooCommerce 6.8 Tested OK.

Download this release

Release Info

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

Code changes from version 2.3.3 to 2.3.4

admin/css/wt-import-export-for-woo-admin.css CHANGED
@@ -768,7 +768,8 @@ img.tips {
768
  color: #001A69;
769
  list-style: none;
770
  position: relative;
771
- padding-left: 49px;
 
772
  margin: 0 0 15px 0;
773
  display: flex;
774
  align-items: center;
@@ -787,8 +788,8 @@ img.tips {
787
  .wt-ierpro-allfeat li:before{
788
  content: '';
789
  position: absolute;
790
- height: 18px;
791
- width: 18px;
792
  background-image: url(../../assets/images/gopro/tick.svg);
793
  background-size: contain;
794
  background-repeat: no-repeat;
@@ -1172,4 +1173,5 @@ ul.wt-ierpro-newfeat li {
1172
  display: flex;
1173
  }
1174
  }
1175
- /* end marketing */
 
768
  color: #001A69;
769
  list-style: none;
770
  position: relative;
771
+ padding-left: 35px;
772
+ padding-right: 5px;
773
  margin: 0 0 15px 0;
774
  display: flex;
775
  align-items: center;
788
  .wt-ierpro-allfeat li:before{
789
  content: '';
790
  position: absolute;
791
+ height: 16px;
792
+ width: 16px;
793
  background-image: url(../../assets/images/gopro/tick.svg);
794
  background-size: contain;
795
  background-repeat: no-repeat;
1173
  display: flex;
1174
  }
1175
  }
1176
+ /* end marketing */
1177
+ .wt-iew-upgrade-to-pro-new-feature{ display:inline-block; width:60px; height:21px; background: url(../../assets/images/gopro/new_flag.svg) no-repeat; color:#fff; text-align:center; font-weight:normal; padding-left:4px; line-height:20px; font-size:12px; text-shadow:0px 2px 4px rgba(0, 0, 0, 0.35);}
admin/modules/import/import.php CHANGED
@@ -1004,7 +1004,7 @@ class Wt_Import_Export_For_Woo_Basic_Import
1004
  if(empty($form_data['mapping_form_data']['mapping_fields'])){
1005
  $msg='Invalid data/Delimter not right';
1006
  //no need to add translation function in message
1007
- Wt_Import_Export_For_Woo_History::record_failure($import_id, $msg);
1008
  $out['msg']=__($msg);
1009
  return $out;
1010
 
1004
  if(empty($form_data['mapping_form_data']['mapping_fields'])){
1005
  $msg='Invalid data/Delimter not right';
1006
  //no need to add translation function in message
1007
+ Wt_Import_Export_For_Woo_Basic_History::record_failure($import_id, $msg);
1008
  $out['msg']=__($msg);
1009
  return $out;
1010
 
admin/modules/user/user.php CHANGED
@@ -72,8 +72,9 @@ class Wt_Import_Export_For_Woo_basic_User {
72
  global $post_type, $post_status;
73
 
74
  $screen = get_current_screen();
75
- if ($screen->id != "users") // Only add to users.php page
76
- return;
 
77
  ?>
78
  <script type="text/javascript">
79
  jQuery(document).ready(function ($) {
@@ -82,7 +83,7 @@ class Wt_Import_Export_For_Woo_basic_User {
82
  });
83
  </script>
84
  <?php
85
-
86
  }
87
 
88
  /**
@@ -218,13 +219,13 @@ class Wt_Import_Export_For_Woo_basic_User {
218
 
219
  $arr['user'] = __('Users');
220
  if (class_exists('woocommerce')) {
221
- $arr['order'] = __('Order');
222
- $arr['coupon'] = __('Coupon');
223
- $arr['product'] = __('Product');
224
- $arr['product_review'] = __('Product Review');
225
- $arr['product_categories'] = __('Product Categories');
226
- $arr['product_tags'] = __('Product Tags');
227
- $arr['user'] = __('User/Customer');
228
  }
229
  return $arr;
230
  }
72
  global $post_type, $post_status;
73
 
74
  $screen = get_current_screen();
75
+
76
+ if ( "users" === $screen->id && !is_plugin_active( 'wt-import-export-for-woo/wt-import-export-for-woo.php' ) ){ // Only add to users.php page
77
+
78
  ?>
79
  <script type="text/javascript">
80
  jQuery(document).ready(function ($) {
83
  });
84
  </script>
85
  <?php
86
+ }
87
  }
88
 
89
  /**
219
 
220
  $arr['user'] = __('Users');
221
  if (class_exists('woocommerce')) {
222
+ $arr['order'] = __('Order', 'users-customers-import-export-for-wp-woocommerce');
223
+ $arr['coupon'] = __('Coupon', 'users-customers-import-export-for-wp-woocommerce');
224
+ $arr['product'] = __('Product', 'users-customers-import-export-for-wp-woocommerce');
225
+ $arr['product_review'] = __('Product Review', 'users-customers-import-export-for-wp-woocommerce');
226
+ $arr['product_categories'] = __('Product Categories', 'users-customers-import-export-for-wp-woocommerce');
227
+ $arr['product_tags'] = __('Product Tags', 'users-customers-import-export-for-wp-woocommerce');
228
+ $arr['user'] = __('User/Customer', 'users-customers-import-export-for-wp-woocommerce');
229
  }
230
  return $arr;
231
  }
assets/images/gopro/new_flag.svg ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ <svg width="43" height="21" viewBox="0 0 43 21" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <rect x="6" width="36.1395" height="21" rx="2" fill="#6E6ADD"/>
3
+ <path d="M0 9.8125L6 5V16L0 9.8125Z" fill="#6E6ADD"/>
4
+ </svg>
helpers/class-wt-security-helper.php CHANGED
@@ -60,6 +60,12 @@ if(!class_exists('Wt_Iew_Sh'))
60
  case 'url_arr':
61
  $val = self::sanitize_arr($val, 'url');
62
  break;
 
 
 
 
 
 
63
  case 'textarea':
64
  $val=sanitize_textarea_field($val);
65
  break;
60
  case 'url_arr':
61
  $val = self::sanitize_arr($val, 'url');
62
  break;
63
+ case 'sanitize_title_with_dashes':
64
+ $val = sanitize_title_with_dashes($val);
65
+ break;
66
+ case 'sanitize_title_with_dashes_arr':
67
+ $val = self::sanitize_arr($val, 'sanitize_title_with_dashes');
68
+ break;
69
  case 'textarea':
70
  $val=sanitize_textarea_field($val);
71
  break;
includes/class-wt-import-export-for-woo.php CHANGED
@@ -80,7 +80,7 @@ class Wt_Import_Export_For_Woo_Basic {
80
  if ( defined( 'WT_U_IEW_VERSION' ) ) {
81
  $this->version = WT_U_IEW_VERSION;
82
  } else {
83
- $this->version = '2.3.3';
84
  }
85
  $this->plugin_name = 'wt-import-export-for-woo-basic';
86
 
80
  if ( defined( 'WT_U_IEW_VERSION' ) ) {
81
  $this->version = WT_U_IEW_VERSION;
82
  } else {
83
+ $this->version = '2.3.4';
84
  }
85
  $this->plugin_name = 'wt-import-export-for-woo-basic';
86
 
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: user import, user export, csv, woocommerce, customers, export import users
5
  Requires at least: 3.0.1
6
  Tested up to: 6.0
7
  Requires PHP: 5.6
8
- Stable tag: 2.3.3
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
@@ -28,7 +28,7 @@ WordPress User Import Export plugin allows the import and export of WordPress us
28
  &#128312; Export Guest users - Include data of WooCommerce guest customers(users who bought products from site without creating an account).
29
  &#128312; Export specific users based on username/email - Suggests email addresses and names in export data filter fields while you type in.
30
  &#128312; Tested OK with WordPress 6.0
31
- &#128312; Tested OK with WooCommerce 6.7
32
  &#128312; Tested OK with PHP 8.0
33
 
34
  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.
@@ -50,7 +50,7 @@ Watch the video on getting started with the plugin.
50
  <blockquote>
51
 
52
  &#9989; Import Export WordPress Users & WooCommerce Customers
53
- &#9989; Export/Import WooCommerce User/Customer details into CSV and XML format. (Basic version supports only CSV Import-export)
54
  &#9989; Option to choose All Roles or Multiple Roles while export.
55
  &#9989; Various Filter options (User Roles, User Email, Date Range, Offset/Limit, Guest Users, Ascending/Descending Sort) for exporting Customers/Users.
56
  &#9989; Map and Transform fields while Importing Customers.
@@ -208,6 +208,10 @@ Please refer the article on how to <a href="https://www.webtoffee.com/refresh-wo
208
 
209
  == Changelog ==
210
 
 
 
 
 
211
  = 2.3.3 2022-08-09 =
212
  * Enhancement: Export total spent amount by customer.
213
  * Bugfix: Delimiter reset when using the re-run option from the History section.
@@ -426,7 +430,7 @@ Please refer the article on how to <a href="https://www.webtoffee.com/refresh-wo
426
 
427
  == Upgrade Notice ==
428
 
429
- = 2.3.3 =
430
- * Enhancement: Export total spent amount by customer.
431
- * Bugfix: Delimiter reset when using the re-run option from the History section.
432
- * WooCommerce 6.7 Tested OK.
5
  Requires at least: 3.0.1
6
  Tested up to: 6.0
7
  Requires PHP: 5.6
8
+ Stable tag: 2.3.4
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
28
  &#128312; Export Guest users - Include data of WooCommerce guest customers(users who bought products from site without creating an account).
29
  &#128312; Export specific users based on username/email - Suggests email addresses and names in export data filter fields while you type in.
30
  &#128312; Tested OK with WordPress 6.0
31
+ &#128312; Tested OK with WooCommerce 6.8
32
  &#128312; Tested OK with PHP 8.0
33
 
34
  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.
50
  <blockquote>
51
 
52
  &#9989; Import Export WordPress Users & WooCommerce Customers
53
+ &#9989; Export/Import WooCommerce User/Customer details into CSV,XML,Excel(XLS,XLSX) formats.
54
  &#9989; Option to choose All Roles or Multiple Roles while export.
55
  &#9989; Various Filter options (User Roles, User Email, Date Range, Offset/Limit, Guest Users, Ascending/Descending Sort) for exporting Customers/Users.
56
  &#9989; Map and Transform fields while Importing Customers.
208
 
209
  == Changelog ==
210
 
211
+ = 2.3.4 2022-08-30 =
212
+ * Bugfix: Duplicate export button on user listing page when both Pro and Free versions are active.
213
+ * Bugfix: Uncaught Error: Class 'Wt_Import_Export_For_Woo_History'
214
+ * WooCommerce 6.8 Tested OK.
215
  = 2.3.3 2022-08-09 =
216
  * Enhancement: Export total spent amount by customer.
217
  * Bugfix: Delimiter reset when using the re-run option from the History section.
430
 
431
  == Upgrade Notice ==
432
 
433
+ = 2.3.4 =
434
+ * Bugfix: Duplicate export button on user listing page when both Pro and Free versions are active.
435
+ * Bugfix: Uncaught Error: Class 'Wt_Import_Export_For_Woo_History'
436
+ * WooCommerce 6.8 Tested OK.
user_import_export_review_request.php CHANGED
@@ -14,7 +14,7 @@ class User_import_export_Review_Request
14
  /**
15
  * config options
16
  */
17
- private $plugin_title = "WordPress Users & WooCommerce Customers Import Export(BASIC)";
18
  private $review_url = "https://wordpress.org/support/plugin/users-customers-import-export-for-wp-woocommerce/reviews/#new-post";
19
  private $plugin_prefix = "wt_u_iew_basic"; /* must be unique name */
20
  private $activation_hook = "wt_u_iew_basic_activate"; /* hook for activation, to store activated date */
14
  /**
15
  * config options
16
  */
17
+ private $plugin_title = "Import Export WordPress Users and WooCommerce Customers";
18
  private $review_url = "https://wordpress.org/support/plugin/users-customers-import-export-for-wp-woocommerce/reviews/#new-post";
19
  private $plugin_prefix = "wt_u_iew_basic"; /* must be unique name */
20
  private $activation_hook = "wt_u_iew_basic_activate"; /* hook for activation, to store activated date */
users-customers-import-export-for-wp-woocommerce.php CHANGED
@@ -5,10 +5,10 @@
5
  Description: Export and Import User/Customers details From and To your WordPress/WooCommerce.
6
  Author: WebToffee
7
  Author URI: https://www.webtoffee.com/product/wordpress-users-woocommerce-customers-import-export/
8
- Version: 2.3.3
9
  Text Domain: users-customers-import-export-for-wp-woocommerce
10
  Domain Path: /languages
11
- WC tested up to: 6.7
12
  Requires at least: 3.0
13
  Requires PHP: 5.6
14
  License: GPLv3
@@ -48,7 +48,7 @@ if (!defined('WT_IEW_DEBUG_BASIC_TROUBLESHOOT')) {
48
  * Start at version 1.0.0 and use SemVer - https://semver.org
49
  * Rename this for your plugin and update it as you release new versions.
50
  */
51
- define('WT_U_IEW_VERSION', '2.3.3');
52
 
53
  /**
54
  * The code that runs during plugin activation.
@@ -209,10 +209,11 @@ function wt_user_addon_basic_gopro_content() {
209
  if ( defined( 'WT_IEW_PLUGIN_ID_BASIC' ) ) {
210
  ?>
211
  <div class="wt-ier-user wt-ier-gopro-cta wt-ierpro-features" style="display: none;">
212
- <ul class="ticked-list wt-ierpro-allfeat">
213
- <li><?php _e('All free version features'); ?></li>
214
- <li><?php _e('XML file type support'); ?></li>
215
- <li><?php _e('Import and export custom fields and hidden metadata'); ?></li>
 
216
  <li><?php _e('Option to send emails to new users on import'); ?></li>
217
  <li><?php _e('Customize email send to new users on import'); ?></li>
218
  <li><?php _e('Import from URL, FTP/SFTP'); ?></li>
@@ -238,7 +239,7 @@ function export_csv_linkin_user_listing_page($which) {
238
 
239
  $currentScreen = get_current_screen();
240
 
241
- if ('users' === $currentScreen->id) {
242
  echo '<a target="_blank" href="' . admin_url('admin.php?page=wt_import_export_for_woo_basic_export&wt_to_export=user') . '" class="button" >' . __('Export to CSV') . ' </a>';
243
  }
244
  }
5
  Description: Export and Import User/Customers details From and To your WordPress/WooCommerce.
6
  Author: WebToffee
7
  Author URI: https://www.webtoffee.com/product/wordpress-users-woocommerce-customers-import-export/
8
+ Version: 2.3.4
9
  Text Domain: users-customers-import-export-for-wp-woocommerce
10
  Domain Path: /languages
11
+ WC tested up to: 6.8
12
  Requires at least: 3.0
13
  Requires PHP: 5.6
14
  License: GPLv3
48
  * Start at version 1.0.0 and use SemVer - https://semver.org
49
  * Rename this for your plugin and update it as you release new versions.
50
  */
51
+ define('WT_U_IEW_VERSION', '2.3.4');
52
 
53
  /**
54
  * The code that runs during plugin activation.
209
  if ( defined( 'WT_IEW_PLUGIN_ID_BASIC' ) ) {
210
  ?>
211
  <div class="wt-ier-user wt-ier-gopro-cta wt-ierpro-features" style="display: none;">
212
+ <ul class="ticked-list wt-ierpro-allfeat">
213
+ <li><?php _e('Import and export in XLS and XLSX formats'); ?><span class="wt-iew-upgrade-to-pro-new-feature"><?php esc_html_e( 'New' ); ?></span></li>
214
+ <li><?php _e('All free version features'); ?></li>
215
+ <li><?php _e('XML file type support'); ?></li>
216
+ <li><?php _e('Export and import custom fields and third-party plugin fields'); ?></li>
217
  <li><?php _e('Option to send emails to new users on import'); ?></li>
218
  <li><?php _e('Customize email send to new users on import'); ?></li>
219
  <li><?php _e('Import from URL, FTP/SFTP'); ?></li>
239
 
240
  $currentScreen = get_current_screen();
241
 
242
+ if ('users' === $currentScreen->id && !is_plugin_active( 'wt-import-export-for-woo/wt-import-export-for-woo.php' ) ) {
243
  echo '<a target="_blank" href="' . admin_url('admin.php?page=wt_import_export_for_woo_basic_export&wt_to_export=user') . '" class="button" >' . __('Export to CSV') . ' </a>';
244
  }
245
  }