Version Description
- Text corrections and batch count defaulted to 10
Download this release
Release Info
Developer | webtoffee |
Plugin | Import Export WordPress Users and WooCommerce Customers |
Version | 2.1.5 |
Comparing to | |
See all releases |
Code changes from version 2.1.4 to 2.1.5
- admin/modules/export/export.php +26 -22
- admin/modules/import/import.php +3 -3
- admin/modules/user/import/import.php +11 -11
- admin/modules/user/user.php +20 -38
- admin/views/market.php +1 -1
- includes/class-wt-import-export-for-woo.php +1 -1
- includes/class-wt-userimport-uninstall-feedback.php +3 -0
- readme.txt +15 -15
- users-customers-import-export-for-wp-woocommerce.php +92 -99
admin/modules/export/export.php
CHANGED
@@ -48,7 +48,7 @@ class Wt_Import_Export_For_Woo_Basic_Export
|
|
48 |
(
|
49 |
'post_type'=>array(
|
50 |
'title'=>__('Select a post type'),
|
51 |
-
'description'=>__('Export and download the respective post type into a CSV. This file can also be used to import data related to the specific post type back into your WooCommerce
|
52 |
),
|
53 |
'method_export'=>array(
|
54 |
'title'=>__('Select an export method'),
|
@@ -82,7 +82,7 @@ class Wt_Import_Export_For_Woo_Basic_Export
|
|
82 |
$this->export_methods=array(
|
83 |
'quick'=>array('title'=>__('Quick export'), 'description'=> __('Exports all the basic fields.')),
|
84 |
'template'=>array('title'=>__('Pre-saved template'), 'description'=> __('Exports data as per the specifications(filters,selective column,mapping etc) from the previously saved file.')),
|
85 |
-
'new'=>array('title'=>__('Advanced export'), 'description'=> __('Exports data after a detailed process of data filtering/column selection/advanced options that may be required for your export. You can also save this
|
86 |
);
|
87 |
|
88 |
/* advanced plugin settings */
|
@@ -118,7 +118,7 @@ class Wt_Import_Export_For_Woo_Basic_Export
|
|
118 |
'label'=>__("Default Export method"),
|
119 |
'type'=>'select',
|
120 |
'sele_vals'=>$export_methods,
|
121 |
-
|
122 |
'field_name'=>'default_export_method',
|
123 |
'field_group'=>'advanced_field',
|
124 |
'help_text'=>__('Select the default method of export.'),
|
@@ -126,7 +126,7 @@ class Wt_Import_Export_For_Woo_Basic_Export
|
|
126 |
$fields['default_export_batch']=array(
|
127 |
'label'=>__("Default Export batch count"),
|
128 |
'type'=>'number',
|
129 |
-
'value' =>
|
130 |
'field_name'=>'default_export_batch',
|
131 |
'help_text'=>__('Provide the default count for the records to be exported in a batch.'),
|
132 |
'validation_rule'=>array('type'=>'absint'),
|
@@ -227,24 +227,28 @@ class Wt_Import_Export_For_Woo_Basic_Export
|
|
227 |
|
228 |
public function get_filter_screen_fields($filter_form_data)
|
229 |
{
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
|
|
|
|
|
|
|
|
248 |
|
249 |
$filter_screen_fields=apply_filters('wt_iew_exporter_alter_filter_fields_basic', $filter_screen_fields, $this->to_export, $filter_form_data);
|
250 |
return $filter_screen_fields;
|
48 |
(
|
49 |
'post_type'=>array(
|
50 |
'title'=>__('Select a post type'),
|
51 |
+
'description'=>__('Export and download the respective post type into a CSV. This file can also be used to import data related to the specific post type back into your WordPress/WooCommerce site. As a first step you need to choose the post type to start the export.'),
|
52 |
),
|
53 |
'method_export'=>array(
|
54 |
'title'=>__('Select an export method'),
|
82 |
$this->export_methods=array(
|
83 |
'quick'=>array('title'=>__('Quick export'), 'description'=> __('Exports all the basic fields.')),
|
84 |
'template'=>array('title'=>__('Pre-saved template'), 'description'=> __('Exports data as per the specifications(filters,selective column,mapping etc) from the previously saved file.')),
|
85 |
+
'new'=>array('title'=>__('Advanced export'), 'description'=> __('Exports data after a detailed process of data filtering/column selection/advanced options that may be required for your export. You can also save this selection for future use.')),
|
86 |
);
|
87 |
|
88 |
/* advanced plugin settings */
|
118 |
'label'=>__("Default Export method"),
|
119 |
'type'=>'select',
|
120 |
'sele_vals'=>$export_methods,
|
121 |
+
'value' =>'quick',
|
122 |
'field_name'=>'default_export_method',
|
123 |
'field_group'=>'advanced_field',
|
124 |
'help_text'=>__('Select the default method of export.'),
|
126 |
$fields['default_export_batch']=array(
|
127 |
'label'=>__("Default Export batch count"),
|
128 |
'type'=>'number',
|
129 |
+
'value' =>10,
|
130 |
'field_name'=>'default_export_batch',
|
131 |
'help_text'=>__('Provide the default count for the records to be exported in a batch.'),
|
132 |
'validation_rule'=>array('type'=>'absint'),
|
227 |
|
228 |
public function get_filter_screen_fields($filter_form_data)
|
229 |
{
|
230 |
+
$filter_screen_fields = array(
|
231 |
+
'limit' => array(
|
232 |
+
'label' => __("Limit"),
|
233 |
+
'value' => '',
|
234 |
+
'type' => 'number',
|
235 |
+
'field_name' => 'limit',
|
236 |
+
'placeholder' => 'Unlimited',
|
237 |
+
'help_text' => __('The actual number of records you want to export. e.g. A limit of 500 with an offset 10 will export records from 11th to 510th position.'),
|
238 |
+
'attr' => array('step' => 1, 'min' => 0),
|
239 |
+
'validation_rule' => array('type' => 'absint')
|
240 |
+
),
|
241 |
+
'offset' => array(
|
242 |
+
'label' => __("Offset"),
|
243 |
+
'value' => '',
|
244 |
+
'field_name' => 'offset',
|
245 |
+
'placeholder' => __('0'),
|
246 |
+
'help_text' => __('Specify the number of records that should be skipped from the beginning. e.g. An offset of 10 skips the first 10 records.'),
|
247 |
+
'type' => 'number',
|
248 |
+
'attr' => array('step' => 1, 'min' => 0),
|
249 |
+
'validation_rule' => array('type' => 'absint')
|
250 |
+
),
|
251 |
+
);
|
252 |
|
253 |
$filter_screen_fields=apply_filters('wt_iew_exporter_alter_filter_fields_basic', $filter_screen_fields, $this->to_export, $filter_form_data);
|
254 |
return $filter_screen_fields;
|
admin/modules/import/import.php
CHANGED
@@ -114,7 +114,7 @@ class Wt_Import_Export_For_Woo_Basic_Import
|
|
114 |
1=>__('Yes'),
|
115 |
0=>__('No')
|
116 |
),
|
117 |
-
|
118 |
'field_name'=>'enable_import_log',
|
119 |
'field_group'=>'advanced_field',
|
120 |
'help_text'=>__('Save import log as text file and make it available in the history section for debugging purposes.'),
|
@@ -125,7 +125,7 @@ class Wt_Import_Export_For_Woo_Basic_Import
|
|
125 |
'label'=>__("Default Import method"),
|
126 |
'type'=>'select',
|
127 |
'sele_vals'=>$import_methods,
|
128 |
-
|
129 |
'field_name'=>'default_import_method',
|
130 |
'field_group'=>'advanced_field',
|
131 |
'help_text'=>__('Select the default method of import.'),
|
@@ -133,7 +133,7 @@ class Wt_Import_Export_For_Woo_Basic_Import
|
|
133 |
$fields['default_import_batch']=array(
|
134 |
'label'=>__("Default Import batch count"),
|
135 |
'type'=>'number',
|
136 |
-
'value' =>
|
137 |
'field_name'=>'default_import_batch',
|
138 |
'help_text'=>__('Provide the default number of records to be imported in a batch.'),
|
139 |
'validation_rule'=>array('type'=>'absint'),
|
114 |
1=>__('Yes'),
|
115 |
0=>__('No')
|
116 |
),
|
117 |
+
'value' =>1,
|
118 |
'field_name'=>'enable_import_log',
|
119 |
'field_group'=>'advanced_field',
|
120 |
'help_text'=>__('Save import log as text file and make it available in the history section for debugging purposes.'),
|
125 |
'label'=>__("Default Import method"),
|
126 |
'type'=>'select',
|
127 |
'sele_vals'=>$import_methods,
|
128 |
+
'value' =>'quick',
|
129 |
'field_name'=>'default_import_method',
|
130 |
'field_group'=>'advanced_field',
|
131 |
'help_text'=>__('Select the default method of import.'),
|
133 |
$fields['default_import_batch']=array(
|
134 |
'label'=>__("Default Import batch count"),
|
135 |
'type'=>'number',
|
136 |
+
'value' =>10, /* If altering then please also change batch count field help text section */
|
137 |
'field_name'=>'default_import_batch',
|
138 |
'help_text'=>__('Provide the default number of records to be imported in a batch.'),
|
139 |
'validation_rule'=>array('type'=>'absint'),
|
admin/modules/user/import/import.php
CHANGED
@@ -176,17 +176,17 @@ class Wt_Import_Export_For_Woo_basic_User_Import {
|
|
176 |
// throw new Exception('Skipping new item' );
|
177 |
// }
|
178 |
|
179 |
-
if(!$this->is_user_exist){
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
}
|
191 |
|
192 |
$user_meta = $user_details = array();
|
176 |
// throw new Exception('Skipping new item' );
|
177 |
// }
|
178 |
|
179 |
+
if (!$this->is_user_exist) {
|
180 |
+
$create_user_without_email = apply_filters('wt_create_user_without_email', FALSE); // create user without email address
|
181 |
+
if (empty($item['user_email']) && $create_user_without_email === FALSE) {
|
182 |
+
$this->hf_log_data_change('user-csv-import', __('> skipped: cannot insert user without email.'));
|
183 |
+
unset($item);
|
184 |
+
return new WP_Error('parse-error', __('> skipped: cannot insert user without email.'));
|
185 |
+
} elseif (!is_email($item['user_email']) && $create_user_without_email === FALSE) {
|
186 |
+
$this->hf_log_data_change('user-csv-import', sprintf(__('> skipped: Email is not valid. %s'), $item['user_email']));
|
187 |
+
unset($item);
|
188 |
+
return new WP_Error('parse-error', __('> skipped: Email is not valid.'));
|
189 |
+
}
|
190 |
}
|
191 |
|
192 |
$user_meta = $user_details = array();
|
admin/modules/user/user.php
CHANGED
@@ -354,15 +354,20 @@ class Wt_Import_Export_For_Woo_basic_User {
|
|
354 |
if ($this->module_base != $base) {
|
355 |
return $fields;
|
356 |
}
|
357 |
-
$fields = array();
|
358 |
/* altering help text of default fields */
|
|
|
|
|
|
|
|
|
|
|
|
|
359 |
|
360 |
$fields['email'] = array(
|
361 |
-
'label' => __('User
|
362 |
-
'placeholder' => __('All
|
363 |
'field_name' => 'email',
|
364 |
'sele_vals' => '',
|
365 |
-
'help_text' => __('Input the
|
366 |
'validation_rule' => array('type'=>'text_arr')
|
367 |
);
|
368 |
if(is_plugin_active('woocommerce/woocommerce.php'))
|
@@ -373,61 +378,38 @@ class Wt_Import_Export_For_Woo_basic_User {
|
|
373 |
}
|
374 |
|
375 |
$fields['roles'] = array(
|
376 |
-
'label' => __('User
|
377 |
-
'placeholder' => __('
|
378 |
'field_name' => 'roles',
|
379 |
'sele_vals' => self::get_user_roles(),
|
380 |
-
'help_text' => __('Input specific roles to export information pertaining to all
|
381 |
'type' => 'multi_select',
|
382 |
'css_class' => 'wc-enhanced-select',
|
383 |
'validation_rule' => array('type'=>'text_arr')
|
384 |
);
|
385 |
|
386 |
$fields['date_from'] = array(
|
387 |
-
'label' => __('
|
388 |
-
'placeholder' => __('Date'),
|
389 |
'field_name' => 'date_from',
|
390 |
'sele_vals' => '',
|
391 |
-
'help_text' => __('Date on which the
|
392 |
'type' => 'text',
|
393 |
'css_class' => 'wt_iew_datepicker',
|
394 |
);
|
395 |
|
396 |
$fields['date_to'] = array(
|
397 |
-
'label' => __('
|
398 |
-
'placeholder' => __('Date'),
|
399 |
'field_name' => 'date_to',
|
400 |
'sele_vals' => '',
|
401 |
-
'help_text' => __('Export
|
402 |
'type' => 'text',
|
403 |
'css_class' => 'wt_iew_datepicker',
|
404 |
);
|
405 |
|
406 |
-
$fields['limit'] = array(
|
407 |
-
'label' => __('Total number of users to export'),
|
408 |
-
'placeholder' => __('Unlimited'),
|
409 |
-
'field_name' => 'limit',
|
410 |
-
'help_text'=>__('Exports specified number of users. e.g. Entering 500 with a skip count of 10 will export users from 11th to 510th position.'),
|
411 |
-
'type' => 'number',
|
412 |
-
'value'=>'',
|
413 |
-
'attr'=>array('step'=>1,'min_val'=>0),
|
414 |
-
'validation_rule' => array('type'=>'absint')
|
415 |
-
);
|
416 |
-
|
417 |
-
$fields['offset'] = array(
|
418 |
-
'label' => __('Skip first <i>n</i> users'),
|
419 |
-
'placeholder' => __('0'),
|
420 |
-
'field_name' => 'offset',
|
421 |
-
'help_text'=>__('Skips specified number of users from the beginning. e.g. Enter 10 to skip first 10 users from export.'),
|
422 |
-
'type' => 'number',
|
423 |
-
'value'=>0,
|
424 |
-
'attr'=>array('step'=>1,'min_val'=>0),
|
425 |
-
'validation_rule' => array('type'=>'absint')
|
426 |
-
);
|
427 |
-
|
428 |
-
|
429 |
$fields['sort_columns'] = array(
|
430 |
-
'label' => __('Sort
|
431 |
'placeholder' => __('user_login'),
|
432 |
'field_name' => 'sort_columns',
|
433 |
'sele_vals' => self::get_user_sort_columns(),
|
@@ -438,7 +420,7 @@ class Wt_Import_Export_For_Woo_basic_User {
|
|
438 |
);
|
439 |
|
440 |
$fields['order_by'] = array(
|
441 |
-
'label' => __('Sort
|
442 |
'placeholder' => __('ASC'),
|
443 |
'field_name' => 'order_by',
|
444 |
'sele_vals' => array('ASC' => 'Ascending', 'DESC' => 'Descending'),
|
354 |
if ($this->module_base != $base) {
|
355 |
return $fields;
|
356 |
}
|
|
|
357 |
/* altering help text of default fields */
|
358 |
+
|
359 |
+
$fields['limit']['label']=__('Total number of users to export');
|
360 |
+
$fields['limit']['help_text']=__('Exports specified number of users. e.g. Entering 500 with a skip count of 10 will export users from 11th to 510th position.');
|
361 |
+
$fields['offset']['label']=__('Skip first <i>n</i> users');
|
362 |
+
$fields['offset']['help_text']=__('Skips specified number of users from the beginning. e.g. Enter 10 to skip first 10 users from export.');
|
363 |
+
|
364 |
|
365 |
$fields['email'] = array(
|
366 |
+
'label' => __('User email'),
|
367 |
+
'placeholder' => __('All users'),
|
368 |
'field_name' => 'email',
|
369 |
'sele_vals' => '',
|
370 |
+
'help_text' => __('Input the user emails separated by comma to export information pertaining to only these users.'),
|
371 |
'validation_rule' => array('type'=>'text_arr')
|
372 |
);
|
373 |
if(is_plugin_active('woocommerce/woocommerce.php'))
|
378 |
}
|
379 |
|
380 |
$fields['roles'] = array(
|
381 |
+
'label' => __('User role'),
|
382 |
+
'placeholder' => __('Any role'),
|
383 |
'field_name' => 'roles',
|
384 |
'sele_vals' => self::get_user_roles(),
|
385 |
+
'help_text' => __('Input specific roles to export information pertaining to all users with the respective role/s.'),
|
386 |
'type' => 'multi_select',
|
387 |
'css_class' => 'wc-enhanced-select',
|
388 |
'validation_rule' => array('type'=>'text_arr')
|
389 |
);
|
390 |
|
391 |
$fields['date_from'] = array(
|
392 |
+
'label' => __('From date'),
|
393 |
+
'placeholder' => __('Date from'),
|
394 |
'field_name' => 'date_from',
|
395 |
'sele_vals' => '',
|
396 |
+
'help_text' => __('Date on which the user registered. Export users registered on and after the specified date.'),
|
397 |
'type' => 'text',
|
398 |
'css_class' => 'wt_iew_datepicker',
|
399 |
);
|
400 |
|
401 |
$fields['date_to'] = array(
|
402 |
+
'label' => __('To date'),
|
403 |
+
'placeholder' => __('Date to'),
|
404 |
'field_name' => 'date_to',
|
405 |
'sele_vals' => '',
|
406 |
+
'help_text' => __('Export users registered upto the specified date.'),
|
407 |
'type' => 'text',
|
408 |
'css_class' => 'wt_iew_datepicker',
|
409 |
);
|
410 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
411 |
$fields['sort_columns'] = array(
|
412 |
+
'label' => __('Sort columns'),
|
413 |
'placeholder' => __('user_login'),
|
414 |
'field_name' => 'sort_columns',
|
415 |
'sele_vals' => self::get_user_sort_columns(),
|
420 |
);
|
421 |
|
422 |
$fields['order_by'] = array(
|
423 |
+
'label' => __('Sort by'),
|
424 |
'placeholder' => __('ASC'),
|
425 |
'field_name' => 'order_by',
|
426 |
'sele_vals' => array('ASC' => 'Ascending', 'DESC' => 'Descending'),
|
admin/views/market.php
CHANGED
@@ -24,7 +24,7 @@ if (!defined('ABSPATH')) {
|
|
24 |
</div>
|
25 |
</div>
|
26 |
<div class="wt-ier-center wt-ier-pt-4">
|
27 |
-
<a href="
|
28 |
</div>
|
29 |
</div>
|
30 |
</div>
|
24 |
</div>
|
25 |
</div>
|
26 |
<div class="wt-ier-center wt-ier-pt-4">
|
27 |
+
<a href="<?php echo admin_url( 'admin.php?page=wt_import_export_for_woo_basic#wt-pro-upgrade' );?>" target="_blank" class="wt-ier-green-btn"><?php _e('Upgrade to Premium');?></a>
|
28 |
</div>
|
29 |
</div>
|
30 |
</div>
|
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.1.
|
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.1.5';
|
84 |
}
|
85 |
$this->plugin_name = 'wt-import-export-for-woo-basic';
|
86 |
|
includes/class-wt-userimport-uninstall-feedback.php
CHANGED
@@ -91,6 +91,9 @@ if (!class_exists('WT_UserImport_Uninstall_Feedback')) :
|
|
91 |
</div>
|
92 |
<div class="userimport-modal-footer">
|
93 |
<a href="#" class="dont-bother-me"><?php _e('I rather wouldn\'t say', 'users-customers-import-export-for-wp-woocommerce'); ?></a>
|
|
|
|
|
|
|
94 |
<button class="button-primary userimport-model-submit"><?php _e('Submit & Deactivate', 'users-customers-import-export-for-wp-woocommerce'); ?></button>
|
95 |
<button class="button-secondary userimport-model-cancel"><?php _e('Cancel', 'users-customers-import-export-for-wp-woocommerce'); ?></button>
|
96 |
</div>
|
91 |
</div>
|
92 |
<div class="userimport-modal-footer">
|
93 |
<a href="#" class="dont-bother-me"><?php _e('I rather wouldn\'t say', 'users-customers-import-export-for-wp-woocommerce'); ?></a>
|
94 |
+
<a class="button-primary" href="https://wordpress.org/support/plugin/users-customers-import-export-for-wp-woocommerce/" target="_blank">
|
95 |
+
<span class="dashicons dashicons-external" style="margin-top:3px;"></span>
|
96 |
+
<?php _e('Get support', 'users-customers-import-export-for-wp-woocommerce'); ?></a>
|
97 |
<button class="button-primary userimport-model-submit"><?php _e('Submit & Deactivate', 'users-customers-import-export-for-wp-woocommerce'); ?></button>
|
98 |
<button class="button-secondary userimport-model-cancel"><?php _e('Cancel', 'users-customers-import-export-for-wp-woocommerce'); ?></button>
|
99 |
</div>
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: user import, user export, csv, woocommerce, customers, import, export, exp
|
|
5 |
Requires at least: 3.0.1
|
6 |
Tested up to: 5.7
|
7 |
Requires PHP: 5.6
|
8 |
-
Stable tag: 2.1.
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
@@ -18,8 +18,8 @@ Import users and export users made simple! Easily Export Users to CSV, Import Us
|
|
18 |
WordPress User Import Export plugin allows you to import and export WordPress users and WooCommerce customers quickly and easily. User Export and User import are much required feature while moving WordPress / WooCommerce websites.
|
19 |
|
20 |
|
21 |
-
🔸 Users Export - Export Users to CSV file
|
22 |
-
🔸 Users import - Import Users from CSV
|
23 |
🔸 Customer Export - Export WooCommerce customers to CSV
|
24 |
🔸 Customer Import - Import WooCommerce customers from CSV
|
25 |
🔸 Batch Export/Import
|
@@ -57,6 +57,7 @@ Watch the video on getting started with the plugin.
|
|
57 |
✅ Option to choose All Roles or Multiple Roles while export.
|
58 |
✅ Various Filter options (User Roles, User Email, Date Range, Offset/Limit, Guest Users, Ascending/Descending Sort) for exporting Customers/Users.
|
59 |
✅ Map and Transform fields while Importing Customers.
|
|
|
60 |
✅ Change values while importing Customers using Evaluation Fields.
|
61 |
✅ Export User Meta. (custom fields and hidden metadata supported in addition to other user data)
|
62 |
✅ Choice to Update or Skip existing imported Customers.
|
@@ -82,21 +83,21 @@ Import Export WordPress Users Plugin is an ideal plugin for exporting and import
|
|
82 |
|
83 |
The following use cases are handled by the plugin
|
84 |
|
85 |
-
✅ User Export - WordPress Export Users to CSV
|
86 |
-
✅ User Import - WordPress Import Users from CSV
|
87 |
-
✅ Customer Export - WooCommerce Export Customers to CSV
|
88 |
-
✅ Customer Import - WooCommerce Import Customers from CSV
|
89 |
|
90 |
|
91 |
WordPress Export Users to CSV
|
92 |
|
93 |
-
With this WordPress export plugin, you can export WordPress users from the WordPress site and generate a CSV file. Use this CSV file to migrate users to another WordPress site by first using the WordPress Export Users functionality and then WordPress import users or merge users (update existing users) functionality of this plugin. If you have hundreds, even thousands, of WordPress users, this helps to save your effort and time of manually adding user information.
|
94 |
|
95 |
You can bulk export users details to CSV file with multiple powerful filters such as User Roles, date ranges, etc. Even the plugin automatically uploads your exports via FTP(premium).
|
96 |
|
97 |
WordPress Import Users from CSV
|
98 |
|
99 |
-
You can import WordPress users to your WordPress site from other platforms easily and quickly using this WordPress
|
100 |
|
101 |
This WordPress import plugin has the option to send an Email to the user email ID whenever the admin imports/updates users details.
|
102 |
|
@@ -123,18 +124,15 @@ For importing WooCommerce customer details to your website, you must create a CS
|
|
123 |
= Import/Export/Migration Plugins for WooCommerce from WebToffee =
|
124 |
|
125 |
|
126 |
-
🔸 <a href="https://wordpress.org/plugins/webtoffee-product-feed/">WebToffee Product Feed for Facebook</a>: This plugin allows you to sync your WooCommerce Products to your Facebook Business Manager account.
|
127 |
🔸 <a href="https://wordpress.org/plugins/product-import-export-for-woo/">WooCommerce Product Import Export Plugin</a>: Easily import and export products to/from your WooCommerce store using a CSV file.
|
128 |
-
🔸 <a href="https://wordpress.org/plugins/product-reviews-import-export-for-woocommerce/">Product Review Import Export for WooCommerce</a>: Import and Export product reviews quickly using a CSV file to and from your WooCommerce store.
|
129 |
🔸 <a href="https://wordpress.org/plugins/order-import-export-for-woocommerce/">WooCommerce Order/Coupon/Subscription Import Export</a>: The plugin lets you export and import orders and coupons via CSV to and from your WooCommerce store.
|
130 |
🔸 <a href="https://wordpress.org/plugins/order-xml-file-export-import-for-woocommerce/">Order XML File Export Import for WooCommerce</a>: Import and export your WooCommerce orders in XML format supported by Stamps.com, UPS WorldShip, Endicia, and FedEx.
|
131 |
🔸 <a href="https://wordpress.org/plugins/xml-file-export-import-for-stampscom-and-woocommerce/">XML File Export Import for Stamps.com and WooCommerce</a>: The plugin lets you easily export and import orders in your store via XML compatible to Stamps.com.
|
132 |
-
🔸 <a href="https://wordpress.org/plugins/comments-import-export-woocommerce/">WordPress Comments Import & Export</a>: Easily import and export WordPress comments using this comment import export plugin.
|
133 |
|
134 |
|
135 |
= About WebToffee.com =
|
136 |
|
137 |
-
<a rel="nofollow" href="https://www.webtoffee.com/">WebToffee</a> creates quality WordPress/WooCommerce plugins that are easy to use and customize. We are proud to have
|
138 |
|
139 |
|
140 |
== Installation ==
|
@@ -219,6 +217,8 @@ Yes, you can update the user data with the help of this plugin. The users will b
|
|
219 |
|
220 |
== Changelog ==
|
221 |
|
|
|
|
|
222 |
= 2.1.4 =
|
223 |
* Menu access capability update
|
224 |
= 2.1.3 =
|
@@ -385,5 +385,5 @@ Yes, you can update the user data with the help of this plugin. The users will b
|
|
385 |
|
386 |
== Upgrade Notice ==
|
387 |
|
388 |
-
= 2.1.
|
389 |
-
*
|
5 |
Requires at least: 3.0.1
|
6 |
Tested up to: 5.7
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 2.1.5
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
18 |
WordPress User Import Export plugin allows you to import and export WordPress users and WooCommerce customers quickly and easily. User Export and User import are much required feature while moving WordPress / WooCommerce websites.
|
19 |
|
20 |
|
21 |
+
🔸 Users Export - Export Users to CSV file.
|
22 |
+
🔸 Users import - WordPress Import Users from CSV .
|
23 |
🔸 Customer Export - Export WooCommerce customers to CSV
|
24 |
🔸 Customer Import - Import WooCommerce customers from CSV
|
25 |
🔸 Batch Export/Import
|
57 |
✅ Option to choose All Roles or Multiple Roles while export.
|
58 |
✅ Various Filter options (User Roles, User Email, Date Range, Offset/Limit, Guest Users, Ascending/Descending Sort) for exporting Customers/Users.
|
59 |
✅ Map and Transform fields while Importing Customers.
|
60 |
+
✅ Map and Transform fields while Importing Customers.
|
61 |
✅ Change values while importing Customers using Evaluation Fields.
|
62 |
✅ Export User Meta. (custom fields and hidden metadata supported in addition to other user data)
|
63 |
✅ Choice to Update or Skip existing imported Customers.
|
83 |
|
84 |
The following use cases are handled by the plugin
|
85 |
|
86 |
+
✅ User Export - WordPress Export Users to CSV.
|
87 |
+
✅ User Import - WordPress Import Users from CSV.
|
88 |
+
✅ Customer Export - WooCommerce Export Customers to CSV.
|
89 |
+
✅ Customer Import - WooCommerce Import Customers from CSV.
|
90 |
|
91 |
|
92 |
WordPress Export Users to CSV
|
93 |
|
94 |
+
With this WordPress user export plugin, you can export WordPress users from the WordPress site and generate a CSV file. Use this CSV file to migrate users to another WordPress site by first using the WordPress Export Users functionality and then WordPress import users or merge users (update existing users) functionality of this plugin. If you have hundreds, even thousands, of WordPress users, this helps to save your effort and time of manually adding user information.
|
95 |
|
96 |
You can bulk export users details to CSV file with multiple powerful filters such as User Roles, date ranges, etc. Even the plugin automatically uploads your exports via FTP(premium).
|
97 |
|
98 |
WordPress Import Users from CSV
|
99 |
|
100 |
+
You can import WordPress users to your WordPress site from other platforms easily and quickly using this WordPress user import plugin. Use WordPress import users feature or merge users (update existing users) hundreds, even thousands, of WordPress users details using one file which saves your effort and time of manually adding user information.
|
101 |
|
102 |
This WordPress import plugin has the option to send an Email to the user email ID whenever the admin imports/updates users details.
|
103 |
|
124 |
= Import/Export/Migration Plugins for WooCommerce from WebToffee =
|
125 |
|
126 |
|
|
|
127 |
🔸 <a href="https://wordpress.org/plugins/product-import-export-for-woo/">WooCommerce Product Import Export Plugin</a>: Easily import and export products to/from your WooCommerce store using a CSV file.
|
|
|
128 |
🔸 <a href="https://wordpress.org/plugins/order-import-export-for-woocommerce/">WooCommerce Order/Coupon/Subscription Import Export</a>: The plugin lets you export and import orders and coupons via CSV to and from your WooCommerce store.
|
129 |
🔸 <a href="https://wordpress.org/plugins/order-xml-file-export-import-for-woocommerce/">Order XML File Export Import for WooCommerce</a>: Import and export your WooCommerce orders in XML format supported by Stamps.com, UPS WorldShip, Endicia, and FedEx.
|
130 |
🔸 <a href="https://wordpress.org/plugins/xml-file-export-import-for-stampscom-and-woocommerce/">XML File Export Import for Stamps.com and WooCommerce</a>: The plugin lets you easily export and import orders in your store via XML compatible to Stamps.com.
|
|
|
131 |
|
132 |
|
133 |
= About WebToffee.com =
|
134 |
|
135 |
+
<a rel="nofollow" href="https://www.webtoffee.com/">WebToffee</a> creates quality WordPress/WooCommerce plugins that are easy to use and customize. We are proud to have millions of customers actively using our plugins across the globe.
|
136 |
|
137 |
|
138 |
== Installation ==
|
217 |
|
218 |
== Changelog ==
|
219 |
|
220 |
+
= 2.1.5 =
|
221 |
+
* Text corrections and batch count defaulted to 10
|
222 |
= 2.1.4 =
|
223 |
* Menu access capability update
|
224 |
= 2.1.3 =
|
385 |
|
386 |
== Upgrade Notice ==
|
387 |
|
388 |
+
= 2.1.5 =
|
389 |
+
* Text corrections and batch count defaulted to 10
|
users-customers-import-export-for-wp-woocommerce.php
CHANGED
@@ -1,12 +1,11 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/*
|
4 |
Plugin Name: WordPress Users & WooCommerce Customers Import Export(BASIC)
|
5 |
Plugin URI: https://wordpress.org/plugins/users-customers-import-export-for-wp-woocommerce/
|
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: 2.1.
|
10 |
WC tested up to: 5.3.0
|
11 |
Text Domain: users-customers-import-export-for-wp-woocommerce
|
12 |
License: GPLv3
|
@@ -15,38 +14,38 @@
|
|
15 |
|
16 |
|
17 |
|
18 |
-
if (
|
19 |
-
|
20 |
}
|
21 |
|
22 |
|
23 |
// If this file is called directly, abort.
|
24 |
-
if (
|
25 |
-
|
26 |
}
|
27 |
|
28 |
-
define
|
29 |
-
define
|
30 |
-
define
|
31 |
-
define
|
32 |
-
if (
|
33 |
-
define
|
34 |
}
|
35 |
-
define
|
36 |
-
define
|
37 |
|
38 |
-
if (
|
39 |
-
define
|
40 |
}
|
41 |
-
if (
|
42 |
-
|
43 |
}
|
44 |
/**
|
45 |
* Currently plugin version.
|
46 |
* Start at version 1.0.0 and use SemVer - https://semver.org
|
47 |
* Rename this for your plugin and update it as you release new versions.
|
48 |
*/
|
49 |
-
define(
|
50 |
|
51 |
/**
|
52 |
* The code that runs during plugin activation.
|
@@ -60,30 +59,28 @@ function activate_wt_import_export_for_woo_basic_user() {
|
|
60 |
// . '</p> <a href="' . admin_url( 'plugins.php' ) . '">' . __( 'go back') . '</a>'
|
61 |
// );
|
62 |
// }
|
63 |
-
|
64 |
-
|
65 |
}
|
66 |
|
67 |
-
|
68 |
-
|
69 |
/**
|
70 |
* The code that runs during plugin deactivation.
|
71 |
* This action is documented in includes/class-wt-import-export-for-woo-deactivator.php
|
72 |
*/
|
73 |
function deactivate_wt_import_export_for_woo_basic_user() {
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
}
|
78 |
|
79 |
-
register_activation_hook(
|
80 |
-
register_deactivation_hook(
|
81 |
|
82 |
/**
|
83 |
* The core plugin class that is used to define internationalization,
|
84 |
* admin-specific hooks, and public-facing site hooks.
|
85 |
*/
|
86 |
-
require plugin_dir_path(
|
87 |
|
88 |
/**
|
89 |
* Begins execution of the plugin.
|
@@ -95,116 +92,112 @@ require plugin_dir_path( __FILE__ ) . 'includes/class-wt-import-export-for-woo.p
|
|
95 |
* @since 1.0.0
|
96 |
*/
|
97 |
function run_wt_import_export_for_woo_basic_user() {
|
98 |
-
|
99 |
-
if (
|
100 |
-
define
|
101 |
-
|
102 |
-
|
103 |
-
}
|
104 |
}
|
|
|
105 |
/** this added for a temporary when a plugin update with the option upload zip file. need to remove this after some version release */
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
{
|
114 |
-
run_wt_import_export_for_woo_basic_user();
|
115 |
}
|
116 |
|
117 |
/* Plugin page links */
|
118 |
-
add_filter(
|
119 |
|
120 |
-
function wt_uiew_plugin_action_links_basic_user(
|
121 |
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
}
|
134 |
|
135 |
/*
|
136 |
* Displays update information for a plugin.
|
137 |
*/
|
138 |
-
|
139 |
-
{
|
140 |
-
if(isset(
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
echo '<style type="text/css">
|
145 |
#users-customers-import-export-for-wp-woocommerce-update .update-message p:last-child{ display:none;}
|
146 |
#users-customers-import-export-for-wp-woocommerce-update ul{ list-style:disc; margin-left:30px;}
|
147 |
.wf-update-message{ padding-left:30px;}
|
148 |
</style>
|
149 |
-
<div class="update-message wf-update-message">'. wpautop($msg).'</div>';
|
150 |
}
|
151 |
}
|
152 |
-
add_action( 'in_plugin_update_message-users-customers-import-export-for-wp-woocommerce/users-customers-import-export-for-wp-woocommerce.php', 'wt_users_customers_import_export_for_wp_woocommerce_update_message', 10, 2 );
|
153 |
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
|
|
158 |
?>
|
159 |
<script>
|
160 |
-
(
|
161 |
-
var update_dv
|
162 |
update_dv.find('.wf-update-message').next('p').remove();
|
163 |
-
update_dv.find('a.update-link:eq(0)').click(function(){
|
164 |
$('.wf-update-message').remove();
|
165 |
});
|
166 |
-
})(
|
167 |
</script>
|
168 |
<?php
|
169 |
}
|
|
|
170 |
}
|
171 |
// uninstall feedback catch
|
172 |
-
include_once plugin_dir_path(
|
173 |
-
|
174 |
-
|
175 |
|
176 |
// add dismissble banner for legecy menu
|
177 |
-
include_once plugin_dir_path(
|
178 |
-
$
|
179 |
-
$
|
180 |
-
$
|
181 |
-
$
|
182 |
-
$
|
183 |
-
|
184 |
-
|
185 |
|
186 |
include_once 'user_import_export_review_request.php';
|
187 |
|
188 |
-
|
189 |
// Add dismissible server info for file restrictions
|
190 |
-
include_once plugin_dir_path(
|
191 |
$inform_server_secure = new wt_inform_server_secure('user');
|
192 |
$inform_server_secure->plugin_title = "User Import Export";
|
193 |
$inform_server_secure->banner_message = sprintf(__("The <b>%s</b> plugin uploads the imported file into <b>wp-content/webtoffee_import</b> folder. Please ensure that public access restrictions are set in your server for this folder."), $inform_server_secure->plugin_title);
|
194 |
|
195 |
-
add_action(
|
196 |
|
197 |
function wt_user_import_basic_help_content() {
|
198 |
-
|
199 |
-
?>
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
}
|
1 |
<?php
|
|
|
2 |
/*
|
3 |
Plugin Name: WordPress Users & WooCommerce Customers Import Export(BASIC)
|
4 |
Plugin URI: https://wordpress.org/plugins/users-customers-import-export-for-wp-woocommerce/
|
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.1.5
|
9 |
WC tested up to: 5.3.0
|
10 |
Text Domain: users-customers-import-export-for-wp-woocommerce
|
11 |
License: GPLv3
|
14 |
|
15 |
|
16 |
|
17 |
+
if (!defined('ABSPATH') || !is_admin()) {
|
18 |
+
return;
|
19 |
}
|
20 |
|
21 |
|
22 |
// If this file is called directly, abort.
|
23 |
+
if (!defined('WPINC')) {
|
24 |
+
die;
|
25 |
}
|
26 |
|
27 |
+
define('WT_U_IEW_PLUGIN_BASENAME', plugin_basename(__FILE__));
|
28 |
+
define('WT_U_IEW_PLUGIN_PATH', plugin_dir_path(__FILE__));
|
29 |
+
define('WT_U_IEW_PLUGIN_URL', plugin_dir_url(__FILE__));
|
30 |
+
define('WT_U_IEW_PLUGIN_FILENAME', __FILE__);
|
31 |
+
if (!defined('WT_IEW_PLUGIN_ID_BASIC')) {
|
32 |
+
define('WT_IEW_PLUGIN_ID_BASIC', 'wt_import_export_for_woo_basic');
|
33 |
}
|
34 |
+
define('WT_U_IEW_PLUGIN_NAME', 'User Import Export for WordPress/WooCommerce');
|
35 |
+
define('WT_U_IEW_PLUGIN_DESCRIPTION', 'Import and Export User From and To your WordPress/WooCommerce Store.');
|
36 |
|
37 |
+
if (!defined('WT_IEW_DEBUG_BASIC')) {
|
38 |
+
define('WT_IEW_DEBUG_BASIC', false);
|
39 |
}
|
40 |
+
if (!defined('WT_IEW_DEBUG_BASIC_TROUBLESHOOT')) {
|
41 |
+
define('WT_IEW_DEBUG_BASIC_TROUBLESHOOT', 'https://www.webtoffee.com/finding-php-error-logs/');
|
42 |
}
|
43 |
/**
|
44 |
* Currently plugin version.
|
45 |
* Start at version 1.0.0 and use SemVer - https://semver.org
|
46 |
* Rename this for your plugin and update it as you release new versions.
|
47 |
*/
|
48 |
+
define('WT_U_IEW_VERSION', '2.1.5');
|
49 |
|
50 |
/**
|
51 |
* The code that runs during plugin activation.
|
59 |
// . '</p> <a href="' . admin_url( 'plugins.php' ) . '">' . __( 'go back') . '</a>'
|
60 |
// );
|
61 |
// }
|
62 |
+
require_once plugin_dir_path(__FILE__) . 'includes/class-wt-import-export-for-woo-activator.php';
|
63 |
+
Wt_Import_Export_For_Woo_Basic_Activator_User::activate();
|
64 |
}
|
65 |
|
|
|
|
|
66 |
/**
|
67 |
* The code that runs during plugin deactivation.
|
68 |
* This action is documented in includes/class-wt-import-export-for-woo-deactivator.php
|
69 |
*/
|
70 |
function deactivate_wt_import_export_for_woo_basic_user() {
|
71 |
+
|
72 |
+
require_once plugin_dir_path(__FILE__) . 'includes/class-wt-import-export-for-woo-deactivator.php';
|
73 |
+
Wt_Import_Export_For_Woo_Basic_Deactivator_User::deactivate();
|
74 |
}
|
75 |
|
76 |
+
register_activation_hook(__FILE__, 'activate_wt_import_export_for_woo_basic_user');
|
77 |
+
register_deactivation_hook(__FILE__, 'deactivate_wt_import_export_for_woo_basic_user');
|
78 |
|
79 |
/**
|
80 |
* The core plugin class that is used to define internationalization,
|
81 |
* admin-specific hooks, and public-facing site hooks.
|
82 |
*/
|
83 |
+
require plugin_dir_path(__FILE__) . 'includes/class-wt-import-export-for-woo.php';
|
84 |
|
85 |
/**
|
86 |
* Begins execution of the plugin.
|
92 |
* @since 1.0.0
|
93 |
*/
|
94 |
function run_wt_import_export_for_woo_basic_user() {
|
95 |
+
|
96 |
+
if (!defined('WT_IEW_BASIC_STARTED')) {
|
97 |
+
define('WT_IEW_BASIC_STARTED', 1);
|
98 |
+
$plugin = new Wt_Import_Export_For_Woo_Basic();
|
99 |
+
$plugin->run();
|
100 |
+
}
|
101 |
}
|
102 |
+
|
103 |
/** this added for a temporary when a plugin update with the option upload zip file. need to remove this after some version release */
|
104 |
+
if (!get_option('wt_u_iew_is_active')) {
|
105 |
+
update_option('wt_user_show_legecy_menu', 1);
|
106 |
+
activate_wt_import_export_for_woo_basic_user();
|
107 |
+
}
|
108 |
+
|
109 |
+
if (get_option('wt_u_iew_is_active')) {
|
110 |
+
run_wt_import_export_for_woo_basic_user();
|
|
|
|
|
111 |
}
|
112 |
|
113 |
/* Plugin page links */
|
114 |
+
add_filter('plugin_action_links_' . plugin_basename(__FILE__), 'wt_uiew_plugin_action_links_basic_user');
|
115 |
|
116 |
+
function wt_uiew_plugin_action_links_basic_user($links) {
|
117 |
|
118 |
+
$plugin_links = array(
|
119 |
+
'<a href="' . admin_url('admin.php?page=wt_import_export_for_woo_basic') . '">' . __('Settings') . '</a>',
|
120 |
+
'<a href="https://www.webtoffee.com/user-import-export-plugin-wordpress-user-guide/" target="_blank">' . __('Documentation') . '</a>',
|
121 |
+
'<a target="_blank" href="https://wordpress.org/support/plugin/users-customers-import-export-for-wp-woocommerce/">' . __('Support') . '</a>',
|
122 |
+
'<a target="_blank" href="https://www.webtoffee.com/product/wordpress-users-woocommerce-customers-import-export/?utm_source=free_plugin_listing&utm_medium=user_imp_exp_basic&utm_campaign=User_Import_Export&utm_content=' . WT_U_IEW_VERSION . '" style="color:#3db634;">' . __('Premium Upgrade') . '</a>'
|
123 |
+
);
|
124 |
|
125 |
+
if (array_key_exists('deactivate', $links)) {
|
126 |
+
$links['deactivate'] = str_replace('<a', '<a class="userimport-deactivate-link"', $links['deactivate']);
|
127 |
+
}
|
128 |
+
return array_merge($plugin_links, $links);
|
129 |
}
|
130 |
|
131 |
/*
|
132 |
* Displays update information for a plugin.
|
133 |
*/
|
134 |
+
|
135 |
+
function wt_users_customers_import_export_for_wp_woocommerce_update_message($data, $response) {
|
136 |
+
if (isset($data['upgrade_notice'])) {
|
137 |
+
add_action('admin_print_footer_scripts', 'wt_users_customers_imex_plugin_screen_update_js');
|
138 |
+
$msg = str_replace(array('<p>', '</p>'), array('<div>', '</div>'), $data['upgrade_notice']);
|
139 |
+
echo '<style type="text/css">
|
|
|
140 |
#users-customers-import-export-for-wp-woocommerce-update .update-message p:last-child{ display:none;}
|
141 |
#users-customers-import-export-for-wp-woocommerce-update ul{ list-style:disc; margin-left:30px;}
|
142 |
.wf-update-message{ padding-left:30px;}
|
143 |
</style>
|
144 |
+
<div class="update-message wf-update-message">' . wpautop($msg) . '</div>';
|
145 |
}
|
146 |
}
|
|
|
147 |
|
148 |
+
add_action('in_plugin_update_message-users-customers-import-export-for-wp-woocommerce/users-customers-import-export-for-wp-woocommerce.php', 'wt_users_customers_import_export_for_wp_woocommerce_update_message', 10, 2);
|
149 |
+
|
150 |
+
if (!function_exists('wt_users_customers_imex_plugin_screen_update_js')) {
|
151 |
+
|
152 |
+
function wt_users_customers_imex_plugin_screen_update_js() {
|
153 |
?>
|
154 |
<script>
|
155 |
+
(function ($) {
|
156 |
+
var update_dv = $('#users-customers-import-export-for-wp-woocommerce-update');
|
157 |
update_dv.find('.wf-update-message').next('p').remove();
|
158 |
+
update_dv.find('a.update-link:eq(0)').click(function () {
|
159 |
$('.wf-update-message').remove();
|
160 |
});
|
161 |
+
})(jQuery);
|
162 |
</script>
|
163 |
<?php
|
164 |
}
|
165 |
+
|
166 |
}
|
167 |
// uninstall feedback catch
|
168 |
+
include_once plugin_dir_path(__FILE__) . 'includes/class-wt-userimport-uninstall-feedback.php';
|
|
|
|
|
169 |
|
170 |
// add dismissble banner for legecy menu
|
171 |
+
include_once plugin_dir_path(__FILE__) . 'includes/class-wt-legecy-menu-moved.php';
|
172 |
+
$user_legacy_menu = new wt_legecy_menu_moved('user');
|
173 |
+
$user_legacy_menu->plugin_title = "User Import Export";
|
174 |
+
$user_legacy_menu->old_menu = "Users > User Import Export";
|
175 |
+
$user_legacy_menu->banner_message = sprintf(__("We have introduced a new main menu %sWebToffee Import Export(basic)%s for the %s plugin. Click the button below or dismiss this banner to remove the old menu from %s."), '<b>', '</b>', $user_legacy_menu->plugin_title, $user_legacy_menu->old_menu);
|
176 |
+
$user_legacy_menu->old_menu_params = array(array('parent_slug' => 'users.php', 'menu_title' => 'User Import Export', 'capability' => 'list_users'),
|
177 |
+
array('parent_slug' => 'woocommerce', 'menu_title' => 'Customer Import Export', 'capability' => 'import')
|
178 |
+
);
|
179 |
|
180 |
include_once 'user_import_export_review_request.php';
|
181 |
|
|
|
182 |
// Add dismissible server info for file restrictions
|
183 |
+
include_once plugin_dir_path(__FILE__) . 'includes/class-wt-non-apache-info.php';
|
184 |
$inform_server_secure = new wt_inform_server_secure('user');
|
185 |
$inform_server_secure->plugin_title = "User Import Export";
|
186 |
$inform_server_secure->banner_message = sprintf(__("The <b>%s</b> plugin uploads the imported file into <b>wp-content/webtoffee_import</b> folder. Please ensure that public access restrictions are set in your server for this folder."), $inform_server_secure->plugin_title);
|
187 |
|
188 |
+
add_action('wt_user_addon_basic_help_content', 'wt_user_import_basic_help_content');
|
189 |
|
190 |
function wt_user_import_basic_help_content() {
|
191 |
+
if (defined('WT_IEW_PLUGIN_ID_BASIC')) {
|
192 |
+
?>
|
193 |
+
<li>
|
194 |
+
<img src="<?php echo WT_U_IEW_PLUGIN_URL; ?>assets/images/sample-csv.png">
|
195 |
+
<h3><?php _e('Sample User CSV'); ?></h3>
|
196 |
+
<p><?php _e('Familiarize yourself with the sample CSV.'); ?></p>
|
197 |
+
<a target="_blank" href="https://www.webtoffee.com/wp-content/uploads/2020/10/Sample_Users.csv" class="button button-primary">
|
198 |
+
<?php _e('Get User CSV'); ?>
|
199 |
+
</a>
|
200 |
+
</li>
|
201 |
+
<?php
|
202 |
+
}
|
203 |
}
|