Import users from CSV with meta - Version 1.15.3.1

Version Description

  • Role included in export
  • Export phones fixed to be exported as dates
  • test.csv improved
  • Different code improvements
Download this release

Release Info

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

Code changes from version 1.15.3 to 1.15.3.1

addons/customer-area.php CHANGED
@@ -2,12 +2,14 @@
2
 
3
  if ( ! defined( 'ABSPATH' ) ) exit;
4
 
5
- if( is_plugin_active( 'customer-area/customer-area.php' ) && is_plugin_active( 'customer-area-managed-groups/customer-area-managed-groups.php' ) ){
6
- add_filter( 'acui_restricted_fields', 'acui_cumg_restricted_fields', 10, 1 );
7
- add_action( 'acui_documentation_after_plugins_activated', 'acui_cumg_documentation_after_plugins_activated' );
8
- add_action( 'post_acui_import_single_user', 'acui_cumg_post_import_single_user', 10, 3 );
9
  }
10
 
 
 
 
 
11
  function acui_cumg_restricted_fields( $acui_restricted_fields ){
12
  return array_merge( $acui_restricted_fields, array( 'customer_area_groups' ) );
13
  }
2
 
3
  if ( ! defined( 'ABSPATH' ) ) exit;
4
 
5
+ if( !is_plugin_active( 'customer-area/customer-area.php' ) || !is_plugin_active( 'customer-area-managed-groups/customer-area-managed-groups.php' ) ){
6
+ return;
 
 
7
  }
8
 
9
+ add_filter( 'acui_restricted_fields', 'acui_cumg_restricted_fields', 10, 1 );
10
+ add_action( 'acui_documentation_after_plugins_activated', 'acui_cumg_documentation_after_plugins_activated' );
11
+ add_action( 'post_acui_import_single_user', 'acui_cumg_post_import_single_user', 10, 3 );
12
+
13
  function acui_cumg_restricted_fields( $acui_restricted_fields ){
14
  return array_merge( $acui_restricted_fields, array( 'customer_area_groups' ) );
15
  }
addons/indeed-ultimate-membership-pro.php CHANGED
@@ -2,12 +2,14 @@
2
 
3
  if ( ! defined( 'ABSPATH' ) ) exit;
4
 
5
- if( is_plugin_active( 'indeed-membership-pro/indeed-membership-pro.php' ) ){
6
- add_filter( 'acui_restricted_fields', 'acui_iump_restricted_fields', 10, 1 );
7
- add_action( 'acui_documentation_after_plugins_activated', 'acui_iump_documentation_after_plugins_activated' );
8
- add_action( 'post_acui_import_single_user', 'acui_iump_post_import_single_user', 10, 3 );
9
  }
10
 
 
 
 
 
11
  function acui_iump_fields() {
12
  $iump_fields = array(
13
  "level"
2
 
3
  if ( ! defined( 'ABSPATH' ) ) exit;
4
 
5
+ if( !is_plugin_active( 'indeed-membership-pro/indeed-membership-pro.php' ) ){
6
+ return;
 
 
7
  }
8
 
9
+ add_filter( 'acui_restricted_fields', 'acui_iump_restricted_fields', 10, 1 );
10
+ add_action( 'acui_documentation_after_plugins_activated', 'acui_iump_documentation_after_plugins_activated' );
11
+ add_action( 'post_acui_import_single_user', 'acui_iump_post_import_single_user', 10, 3 );
12
+
13
  function acui_iump_fields() {
14
  $iump_fields = array(
15
  "level"
addons/new-user-approve.php CHANGED
@@ -2,10 +2,12 @@
2
 
3
  if ( ! defined( 'ABSPATH' ) ) exit;
4
 
5
- if( is_plugin_active( 'new-user-approve/new-user-approve.php' ) ){
6
- add_action( 'acui_tab_import_before_import_button', 'acui_new_user_approve_tab_import_before_import_button' );
7
  }
8
 
 
 
9
  function acui_new_user_approve_tab_import_before_import_button(){
10
  ?>
11
  <h2><?php _e( 'New User Approve compatibility', 'import-users-from-csv-with-meta'); ?></h2>
2
 
3
  if ( ! defined( 'ABSPATH' ) ) exit;
4
 
5
+ if( !is_plugin_active( 'new-user-approve/new-user-approve.php' ) ){
6
+ return;
7
  }
8
 
9
+ add_action( 'acui_tab_import_before_import_button', 'acui_new_user_approve_tab_import_before_import_button' );
10
+
11
  function acui_new_user_approve_tab_import_before_import_button(){
12
  ?>
13
  <h2><?php _e( 'New User Approve compatibility', 'import-users-from-csv-with-meta'); ?></h2>
addons/pmpro.php CHANGED
@@ -2,12 +2,14 @@
2
 
3
  if ( ! defined( 'ABSPATH' ) ) exit;
4
 
5
- if( is_plugin_active( 'paid-memberships-pro/paid-memberships-pro.php' ) ){
6
- add_filter( 'acui_restricted_fields', 'acui_pmpro_restricted_fields', 10, 1 );
7
- add_action( 'acui_documentation_after_plugins_activated', 'acui_pmpro_documentation_after_plugins_activated' );
8
- add_action( 'post_acui_import_single_user', 'acui_pmpro_post_import_single_user', 10, 3 );
9
  }
10
 
 
 
 
 
11
  function acui_pmpro_fields() {
12
  $pmpro_fields = array(
13
  "membership_id",
2
 
3
  if ( ! defined( 'ABSPATH' ) ) exit;
4
 
5
+ if( !is_plugin_active( 'paid-memberships-pro/paid-memberships-pro.php' ) ){
6
+ return;
 
 
7
  }
8
 
9
+ add_filter( 'acui_restricted_fields', 'acui_pmpro_restricted_fields', 10, 1 );
10
+ add_action( 'acui_documentation_after_plugins_activated', 'acui_pmpro_documentation_after_plugins_activated' );
11
+ add_action( 'post_acui_import_single_user', 'acui_pmpro_post_import_single_user', 10, 3 );
12
+
13
  function acui_pmpro_fields() {
14
  $pmpro_fields = array(
15
  "membership_id",
addons/users-group.php CHANGED
@@ -2,12 +2,14 @@
2
 
3
  if ( ! defined( 'ABSPATH' ) ) exit;
4
 
5
- if( is_plugin_active( 'user-groups/user-groups.php' ) ){
6
- add_filter( 'acui_restricted_fields', 'acui_ug_restricted_fields', 10, 1 );
7
- add_action( 'acui_documentation_after_plugins_activated', 'acui_ug_documentation_after_plugins_activated' );
8
- add_action( 'post_acui_import_single_user', 'acui_ug_post_import_single_user', 10, 3 );
9
  }
10
 
 
 
 
 
11
  function acui_ug_restricted_fields( $acui_restricted_fields ){
12
  return array_merge( $acui_restricted_fields, array( 'user_group' ) );
13
  }
2
 
3
  if ( ! defined( 'ABSPATH' ) ) exit;
4
 
5
+ if( !is_plugin_active( 'user-groups/user-groups.php' ) ){
6
+ return;
 
 
7
  }
8
 
9
+ add_filter( 'acui_restricted_fields', 'acui_ug_restricted_fields', 10, 1 );
10
+ add_action( 'acui_documentation_after_plugins_activated', 'acui_ug_documentation_after_plugins_activated' );
11
+ add_action( 'post_acui_import_single_user', 'acui_ug_post_import_single_user', 10, 3 );
12
+
13
  function acui_ug_restricted_fields( $acui_restricted_fields ){
14
  return array_merge( $acui_restricted_fields, array( 'user_group' ) );
15
  }
addons/woocommerce-membership.php CHANGED
@@ -2,12 +2,14 @@
2
 
3
  if ( ! defined( 'ABSPATH' ) ) exit;
4
 
5
- if( is_plugin_active( 'woocommerce-memberships/woocommerce-memberships.php' ) ){
6
- add_filter( 'acui_restricted_fields', 'acui_wm_restricted_fields', 10, 1 );
7
- add_action( 'acui_documentation_after_plugins_activated', 'acui_wm_documentation_after_plugins_activated' );
8
- add_action( 'post_acui_import_single_user', 'acui_wm_post_import_single_user', 10, 3 );
9
  }
10
 
 
 
 
 
11
  function acui_wm_restricted_fields( $acui_restricted_fields ){
12
  return array_merge( $acui_restricted_fields, array( 'member_first_name', 'member_last_name', 'member_email', 'membership_plan_id', 'membership_plan_slug', 'membership_plan', 'membership_status', 'member_since', 'membership_expiration' ) );
13
  }
2
 
3
  if ( ! defined( 'ABSPATH' ) ) exit;
4
 
5
+ if( !is_plugin_active( 'woocommerce-memberships/woocommerce-memberships.php' ) ){
6
+ return;
 
 
7
  }
8
 
9
+ add_filter( 'acui_restricted_fields', 'acui_wm_restricted_fields', 10, 1 );
10
+ add_action( 'acui_documentation_after_plugins_activated', 'acui_wm_documentation_after_plugins_activated' );
11
+ add_action( 'post_acui_import_single_user', 'acui_wm_post_import_single_user', 10, 3 );
12
+
13
  function acui_wm_restricted_fields( $acui_restricted_fields ){
14
  return array_merge( $acui_restricted_fields, array( 'member_first_name', 'member_last_name', 'member_email', 'membership_plan_id', 'membership_plan_slug', 'membership_plan', 'membership_status', 'member_since', 'membership_expiration' ) );
15
  }
addons/wp-lms-course.php CHANGED
@@ -4,12 +4,14 @@
4
 
5
  if ( ! defined( 'ABSPATH' ) ) exit;
6
 
7
- if( is_plugin_active( 'lifterlms/lifterlms.php' ) ){
8
- add_filter( 'acui_restricted_fields', 'acui_wlms_restricted_fields', 10, 1 );
9
- add_action( 'acui_documentation_after_plugins_activated', 'acui_wlms_documentation_after_plugins_activated' );
10
- add_action( 'post_acui_import_single_user', 'acui_wlms_post_import_single_user', 10, 3 );
11
  }
12
 
 
 
 
 
13
  function acui_wlms_restricted_fields( $acui_restricted_fields ){
14
  return array_merge( $acui_restricted_fields, array( 'lms_courses' ) );
15
  }
4
 
5
  if ( ! defined( 'ABSPATH' ) ) exit;
6
 
7
+ if( !is_plugin_active( 'lifterlms/lifterlms.php' ) ){
8
+ return;
 
 
9
  }
10
 
11
+ add_filter( 'acui_restricted_fields', 'acui_wlms_restricted_fields', 10, 1 );
12
+ add_action( 'acui_documentation_after_plugins_activated', 'acui_wlms_documentation_after_plugins_activated' );
13
+ add_action( 'post_acui_import_single_user', 'acui_wlms_post_import_single_user', 10, 3 );
14
+
15
  function acui_wlms_restricted_fields( $acui_restricted_fields ){
16
  return array_merge( $acui_restricted_fields, array( 'lms_courses' ) );
17
  }
addons/wp-members.php CHANGED
@@ -2,11 +2,13 @@
2
 
3
  if ( ! defined( 'ABSPATH' ) ) exit;
4
 
5
- if( is_plugin_active( 'wp-members/wp-members.php' ) ){
6
- add_action( 'acui_tab_import_before_import_button', 'acui_wp_members_tab_import_before_import_button' );
7
- add_action( 'acui_tab_frontend_before_save_button', 'acui_wp_members_tab_frontend_before_save_button' );
8
  }
9
 
 
 
 
10
  function acui_wp_members_tab_import_before_import_button(){
11
  ?>
12
  <h2><?php _e( 'WP Members compatibility', 'import-users-from-csv-with-meta'); ?></h2>
2
 
3
  if ( ! defined( 'ABSPATH' ) ) exit;
4
 
5
+ if( !is_plugin_active( 'wp-members/wp-members.php' ) ){
6
+ return;
 
7
  }
8
 
9
+ add_action( 'acui_tab_import_before_import_button', 'acui_wp_members_tab_import_before_import_button' );
10
+ add_action( 'acui_tab_frontend_before_save_button', 'acui_wp_members_tab_frontend_before_save_button' );
11
+
12
  function acui_wp_members_tab_import_before_import_button(){
13
  ?>
14
  <h2><?php _e( 'WP Members compatibility', 'import-users-from-csv-with-meta'); ?></h2>
addons/wp-user-avatar.php CHANGED
@@ -2,12 +2,14 @@
2
 
3
  if ( ! defined( 'ABSPATH' ) ) exit;
4
 
5
- if( is_plugin_active( 'wp-user-avatar/wp-user-avatar.php' ) ){
6
- add_filter( 'acui_restricted_fields', 'acui_wpua_restricted_fields', 10, 1 );
7
- add_action( 'acui_documentation_after_plugins_activated', 'acui_wpua_documentation_after_plugins_activated' );
8
- add_action( 'post_acui_import_single_user', 'acui_wpua_post_import_single_user', 10, 3 );
9
  }
10
 
 
 
 
 
11
  function acui_wpua_restricted_fields( $acui_restricted_fields ){
12
  return array_merge( $acui_restricted_fields, array( 'avatar_url' ) );
13
  }
2
 
3
  if ( ! defined( 'ABSPATH' ) ) exit;
4
 
5
+ if( !is_plugin_active( 'wp-user-avatar/wp-user-avatar.php' ) ){
6
+ return;
 
 
7
  }
8
 
9
+ add_filter( 'acui_restricted_fields', 'acui_wpua_restricted_fields', 10, 1 );
10
+ add_action( 'acui_documentation_after_plugins_activated', 'acui_wpua_documentation_after_plugins_activated' );
11
+ add_action( 'post_acui_import_single_user', 'acui_wpua_post_import_single_user', 10, 3 );
12
+
13
  function acui_wpua_restricted_fields( $acui_restricted_fields ){
14
  return array_merge( $acui_restricted_fields, array( 'avatar_url' ) );
15
  }
addons/wp-users-group.php CHANGED
@@ -2,12 +2,14 @@
2
 
3
  if ( ! defined( 'ABSPATH' ) ) exit;
4
 
5
- if( is_plugin_active( 'wp-user-groups/wp-user-groups.php' ) ){
6
- add_filter( 'acui_restricted_fields', 'acui_wpug_restricted_fields', 10, 1 );
7
- add_action( 'acui_documentation_after_plugins_activated', 'acui_wpug_documentation_after_plugins_activated' );
8
- add_action( 'post_acui_import_single_user', 'acui_wpug_post_import_single_user', 10, 3 );
9
  }
10
 
 
 
 
 
11
  function acui_wpug_restricted_fields( $acui_restricted_fields ){
12
  return array_merge( $acui_restricted_fields, array( 'user_group' ) );
13
  }
2
 
3
  if ( ! defined( 'ABSPATH' ) ) exit;
4
 
5
+ if( !is_plugin_active( 'wp-user-groups/wp-user-groups.php' ) ){
6
+ return;
 
 
7
  }
8
 
9
+ add_filter( 'acui_restricted_fields', 'acui_wpug_restricted_fields', 10, 1 );
10
+ add_action( 'acui_documentation_after_plugins_activated', 'acui_wpug_documentation_after_plugins_activated' );
11
+ add_action( 'post_acui_import_single_user', 'acui_wpug_post_import_single_user', 10, 3 );
12
+
13
  function acui_wpug_restricted_fields( $acui_restricted_fields ){
14
  return array_merge( $acui_restricted_fields, array( 'user_group' ) );
15
  }
classes/email-options.php CHANGED
@@ -9,10 +9,8 @@ class ACUI_Email_Options{
9
  }
10
 
11
  public static function admin_gui(){
12
- $from_email = get_option( "acui_mail_from" );
13
- $from_name = get_option( "acui_mail_from_name" );
14
- $body_mail = get_option( "acui_mail_body" );
15
  $subject_mail = get_option( "acui_mail_subject" );
 
16
  $template_id = get_option( "acui_mail_template_id" );
17
  $attachment_id = get_option( "acui_mail_attachment_id" );
18
  $enable_email_templates = get_option( "acui_enable_email_templates" );
9
  }
10
 
11
  public static function admin_gui(){
 
 
 
12
  $subject_mail = get_option( "acui_mail_subject" );
13
+ $body_mail = get_option( "acui_mail_body" );
14
  $template_id = get_option( "acui_mail_template_id" );
15
  $attachment_id = get_option( "acui_mail_attachment_id" );
16
  $enable_email_templates = get_option( "acui_enable_email_templates" );
classes/export.php CHANGED
@@ -81,10 +81,19 @@ class ACUI_Exporter{
81
 
82
  function prepare( $key, $value, $datetime_format ){
83
  $timestamp_keys = array( 'wc_last_active' );
 
84
 
85
  if( is_array( $value ) )
86
  return serialize( $value );
 
 
 
87
  elseif( strtotime( $value ) && !is_integer( $value ) && strlen( $value ) > 3 ){ // dates in datetime format
 
 
 
 
 
88
  return date( $datetime_format, strtotime( $value ) );
89
  }
90
  elseif( in_array( $key, $timestamp_keys) ){ // dates in timestamp format
@@ -94,6 +103,11 @@ class ACUI_Exporter{
94
  return $value;
95
  }
96
 
 
 
 
 
 
97
  function export_users_csv(){
98
  check_ajax_referer( 'codection-security', 'security' );
99
 
@@ -132,6 +146,8 @@ class ACUI_Exporter{
132
  $row[] = $key;
133
  }
134
 
 
 
135
  foreach ( $this->get_user_meta_key() as $key ) {
136
  $row[] = $key;
137
  }
@@ -148,6 +164,8 @@ class ACUI_Exporter{
148
  $row[] = $this->prepare( $key, $userdata->data->{$key}, $datetime_format );
149
  }
150
 
 
 
151
  foreach ( $this->get_user_meta_key() as $key ) {
152
  $row[] = $this->prepare( $key, get_user_meta( $user, $key, true ), $datetime_format );
153
  }
81
 
82
  function prepare( $key, $value, $datetime_format ){
83
  $timestamp_keys = array( 'wc_last_active' );
84
+ $non_date_keys = array( 'billing_phone' );
85
 
86
  if( is_array( $value ) )
87
  return serialize( $value );
88
+ elseif( in_array( $key, $non_date_keys ) ){
89
+ return $value;
90
+ }
91
  elseif( strtotime( $value ) && !is_integer( $value ) && strlen( $value ) > 3 ){ // dates in datetime format
92
+ echo "<pre>";
93
+ var_dump( $value );
94
+ var_dump( strtotime( $value ) );
95
+ var_dump( is_integer( $value ) );
96
+ echo "</pre>";
97
  return date( $datetime_format, strtotime( $value ) );
98
  }
99
  elseif( in_array( $key, $timestamp_keys) ){ // dates in timestamp format
103
  return $value;
104
  }
105
 
106
+ function get_role( $user_id ){
107
+ $user = get_user_by( 'id', $user_id );
108
+ return implode( ',', $user->roles );
109
+ }
110
+
111
  function export_users_csv(){
112
  check_ajax_referer( 'codection-security', 'security' );
113
 
146
  $row[] = $key;
147
  }
148
 
149
+ $row[] = "role";
150
+
151
  foreach ( $this->get_user_meta_key() as $key ) {
152
  $row[] = $key;
153
  }
164
  $row[] = $this->prepare( $key, $userdata->data->{$key}, $datetime_format );
165
  }
166
 
167
+ $row[] = $this->get_role( $user );
168
+
169
  foreach ( $this->get_user_meta_key() as $key ) {
170
  $row[] = $this->prepare( $key, get_user_meta( $user, $key, true ), $datetime_format );
171
  }
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.15.3
7
  Author: codection
8
  Author URI: https://codection.com
9
  License: GPL2
@@ -14,11 +14,6 @@ Domain Path: /languages
14
  if ( ! defined( 'ABSPATH' ) )
15
  exit;
16
 
17
- $wp_users_fields = array( "id", "user_nicename", "user_url", "display_name", "nickname", "first_name", "last_name", "description", "jabber", "aim", "yim", "user_registered", "password", "user_pass", "locale", "show_admin_bar_front", "user_login" );
18
- $wp_min_fields = array("Username", "Email");
19
- $acui_fields = array( "bp_group", "bp_group_role", "role" );
20
- $acui_restricted_fields = array_merge( $wp_users_fields, $wp_min_fields, $acui_fields );
21
-
22
  include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
23
 
24
  if( is_plugin_active( 'buddypress/bp-loader.php' ) ){
@@ -139,8 +134,6 @@ function acui_admin_enqueue_scripts() {
139
  function acui_delete_options(){
140
  $acui_smtp_options = array (
141
  'acui_settings' => 'wordpress',
142
- 'acui_mail_from' => '',
143
- 'acui_mail_from_name' => '',
144
  'acui_mailer' => 'smtp',
145
  'acui_mail_set_return_path' => 'false',
146
  'acui_smtp_host' => 'localhost',
@@ -159,7 +152,11 @@ function acui_delete_options(){
159
  }
160
 
161
  function acui_get_restricted_fields(){
162
- global $acui_restricted_fields;
 
 
 
 
163
  return apply_filters( 'acui_restricted_fields', $acui_restricted_fields );
164
  }
165
 
@@ -215,14 +212,6 @@ function acui_string_conversion( $string ){
215
  return $string;
216
  }
217
 
218
- function acui_mail_from(){
219
- return get_option( "acui_mail_from" );
220
- }
221
-
222
- function acui_mail_from_name(){
223
- return get_option( "acui_mail_from_name" );
224
- }
225
-
226
  function acui_user_id_exists( $user_id ){
227
  if ( get_userdata( $user_id ) === false )
228
  return false;
@@ -230,7 +219,7 @@ function acui_user_id_exists( $user_id ){
230
  return true;
231
  }
232
 
233
- function acui_get_roles($user_id){
234
  $roles = array();
235
  $user = new WP_User( $user_id );
236
 
@@ -472,7 +461,7 @@ function acui_cron_process(){
472
  update_option( "acui_cron_log", $message );
473
  }
474
 
475
- function acui_cron_process_auto_rename () {
476
  if( get_option( "acui_cron_path_to_move_auto_rename" ) != true )
477
  return;
478
 
@@ -532,7 +521,7 @@ function acui_save_extra_user_profile_fields( $user_id ){
532
  function acui_modify_user_edit_admin(){
533
  global $pagenow;
534
 
535
- if(in_array($pagenow, array("user-edit.php", "profile.php"))){
536
  $acui_columns = get_option("acui_columns");
537
 
538
  if(is_array($acui_columns) && !empty($acui_columns)){
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.15.3.1
7
  Author: codection
8
  Author URI: https://codection.com
9
  License: GPL2
14
  if ( ! defined( 'ABSPATH' ) )
15
  exit;
16
 
 
 
 
 
 
17
  include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
18
 
19
  if( is_plugin_active( 'buddypress/bp-loader.php' ) ){
134
  function acui_delete_options(){
135
  $acui_smtp_options = array (
136
  'acui_settings' => 'wordpress',
 
 
137
  'acui_mailer' => 'smtp',
138
  'acui_mail_set_return_path' => 'false',
139
  'acui_smtp_host' => 'localhost',
152
  }
153
 
154
  function acui_get_restricted_fields(){
155
+ $wp_users_fields = array( "id", "user_nicename", "user_url", "display_name", "nickname", "first_name", "last_name", "description", "jabber", "aim", "yim", "user_registered", "password", "user_pass", "locale", "show_admin_bar_front", "user_login" );
156
+ $wp_min_fields = array( "Username", "Email" );
157
+ $acui_fields = array( "bp_group", "bp_group_role", "role" );
158
+ $acui_restricted_fields = array_merge( $wp_users_fields, $wp_min_fields, $acui_fields );
159
+
160
  return apply_filters( 'acui_restricted_fields', $acui_restricted_fields );
161
  }
162
 
212
  return $string;
213
  }
214
 
 
 
 
 
 
 
 
 
215
  function acui_user_id_exists( $user_id ){
216
  if ( get_userdata( $user_id ) === false )
217
  return false;
219
  return true;
220
  }
221
 
222
+ function acui_get_roles( $user_id ){
223
  $roles = array();
224
  $user = new WP_User( $user_id );
225
 
461
  update_option( "acui_cron_log", $message );
462
  }
463
 
464
+ function acui_cron_process_auto_rename() {
465
  if( get_option( "acui_cron_path_to_move_auto_rename" ) != true )
466
  return;
467
 
521
  function acui_modify_user_edit_admin(){
522
  global $pagenow;
523
 
524
+ if( in_array( $pagenow, array( "user-edit.php", "profile.php" ) ) ){
525
  $acui_columns = get_option("acui_columns");
526
 
527
  if(is_array($acui_columns) && !empty($acui_columns)){
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.3.2
7
- Stable tag: 1.15.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -14,8 +14,9 @@ Import and export users and customers using CSV files including custom user meta
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
18
- * Import thousends of users in only some seconds
 
19
  * You can also import meta-data like data from WooCommerce customers using the correct meta_keys
20
  * You can assign roles while importing
21
  * Send a mail to every new user, this mails can be saved as templates and are fully customizable
@@ -97,6 +98,12 @@ Plugin will automatically detect:
97
 
98
  == Changelog ==
99
 
 
 
 
 
 
 
100
  = 1.15.3 =
101
  * Multisite compatiility improved now you can assign users to blogs after import
102
 
@@ -893,6 +900,10 @@ You can use those labels if you want to set data adapted to the WordPress defaul
893
 
894
  You can upload as many files as you want, but all must have the same columns. If you upload another file, the columns will change to the form of last file uploaded.
895
 
 
 
 
 
896
  = This plugin saved me a lot of time and work. Where can I donate? =
897
 
898
  Thanks, donations help us to continue improving our plugins and allow us to give the best support in the forums [Donate Here via PayPal.](https://codection.com/go/donate-import-users-from-csv-with-meta/)
@@ -915,7 +926,7 @@ You can get:
915
 
916
  ### **Installation**
917
 
918
- * Install **Import users from CSV with meta** automatically through the WordPress Dashboard or by uploading the ZIP file in the _plugins_ directory.
919
  * Then, after the package is uploaded and extracted, click&nbsp;_Activate Plugin_.
920
 
921
  Now going through the points above, you should now see a new&nbsp;_Import users from CSV_&nbsp;menu item under Tool menu in the sidebar of the admin panel, see figure below of how it looks like.
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.3.2
7
+ Stable tag: 1.15.3.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
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
19
+ * Export users or customers to a CSV file
20
  * You can also import meta-data like data from WooCommerce customers using the correct meta_keys
21
  * You can assign roles while importing
22
  * Send a mail to every new user, this mails can be saved as templates and are fully customizable
98
 
99
  == Changelog ==
100
 
101
+ = 1.15.3.1 =
102
+ * Role included in export
103
+ * Export phones fixed to be exported as dates
104
+ * test.csv improved
105
+ * Different code improvements
106
+
107
  = 1.15.3 =
108
  * Multisite compatiility improved now you can assign users to blogs after import
109
 
900
 
901
  You can upload as many files as you want, but all must have the same columns. If you upload another file, the columns will change to the form of last file uploaded.
902
 
903
+ = Export =
904
+
905
+ You can export a file with all your users data using "Export" tab. There you will be able to find some filters and options to prepare your export.
906
+
907
  = This plugin saved me a lot of time and work. Where can I donate? =
908
 
909
  Thanks, donations help us to continue improving our plugins and allow us to give the best support in the forums [Donate Here via PayPal.](https://codection.com/go/donate-import-users-from-csv-with-meta/)
926
 
927
  ### **Installation**
928
 
929
+ * Install **Import and export users and customers** automatically through the WordPress Dashboard or by uploading the ZIP file in the _plugins_ directory.
930
  * Then, after the package is uploaded and extracted, click&nbsp;_Activate Plugin_.
931
 
932
  Now going through the points above, you should now see a new&nbsp;_Import users from CSV_&nbsp;menu item under Tool menu in the sidebar of the admin panel, see figure below of how it looks like.
test.csv CHANGED
@@ -1,2 +1,3 @@
1
- Username,Email,Password,Address,City,State,Zip code,Country,user_url
2
- javier,javier@micorreo.com,pass,Av. Cervantes,C�rdoba,C�rdoba,14004,Espa�a,http://www.linuxhispano.net
 
1
+ user_login,user_email,display_name,role,first_name,last_name,billing_first_name,billing_last_name,billing_company,billing_email,billing_phone,billing_country,billing_address_1,billing_address_2,billing_city,billing_state,billing_postcode,shipping_first_name,shipping_last_name,shipping_company,shipping_country,shipping_address_1,shipping_address_2,shipping_city,shipping_state,shipping_postcode
2
+ javier,carazo@correo.es,Javier Carazo,customer,Javier,Carazo,Javier,Carazo,,carazo@correo.es,600000000,ES,c/ Islas,,Córdoba,CO,14001,Javier,Carazo,,ES,c/ Islas,,Córdoba,CO,14001
3
+ inma,inma@email.com,Inma Pérez,subscriber,Inma,Pérez,,,,,,,,,,,,,,,,,,,,