Import users from CSV with meta - Version 1.15.5.12

Version Description

  • Bug fixed in BuddyPress importer
  • Little improvement in extra profile fields
Download this release

Release Info

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

Code changes from version 1.15.5.11 to 1.15.5.12

addons/buddypress.php CHANGED
@@ -15,7 +15,7 @@ function acui_buddypress_tab_import_before_import_button(){
15
  }
16
 
17
  $buddypress_fields = array();
18
- $buddypress_types=array();
19
  $profile_groups = BP_XProfile_Group::get( array( 'fetch_fields' => true ) );
20
 
21
  if ( !empty( $profile_groups ) ) {
15
  }
16
 
17
  $buddypress_fields = array();
18
+ $buddypress_types = array();
19
  $profile_groups = BP_XProfile_Group::get( array( 'fetch_fields' => true ) );
20
 
21
  if ( !empty( $profile_groups ) ) {
addons/woocommerce.php ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ if ( ! defined( 'ABSPATH' ) ) exit;
4
+
5
+ if( !is_plugin_active( 'woocommerce/woocommerce.php' ) ){
6
+ return;
7
+ }
8
+
9
+ class ACUI_WooCommerce{
10
+ private $all_virtual;
11
+
12
+ function __construct(){
13
+ add_filter( 'acui_restricted_fields', array( $this, 'restricted_fields' ), 10, 1 );
14
+ add_action( 'acui_documentation_after_plugins_activated', array( $this, 'documentation' ) );
15
+ }
16
+
17
+ function fields(){
18
+ return array(
19
+ 'billing_first_name', // Billing Address Info
20
+ 'billing_last_name',
21
+ 'billing_company',
22
+ 'billing_address_1',
23
+ 'billing_address_2',
24
+ 'billing_city',
25
+ 'billing_state',
26
+ 'billing_postcode',
27
+ 'billing_country',
28
+ 'billing_email',
29
+ 'billing_phone',
30
+
31
+ 'shipping_first_name', // Shipping Address Info
32
+ 'shipping_last_name',
33
+ 'shipping_company',
34
+ 'shipping_address_1',
35
+ 'shipping_address_2',
36
+ 'shipping_city',
37
+ 'shipping_state',
38
+ 'shipping_postcode',
39
+ 'shipping_country',
40
+ );
41
+ }
42
+
43
+ function restricted_fields( $acui_restricted_fields ){
44
+ return array_merge( $acui_restricted_fields, $this->fields() );
45
+ }
46
+
47
+ function documentation(){
48
+ ?>
49
+ <tr valign="top">
50
+ <th scope="row"><?php _e( "WooCommerce is activated", 'import-users-from-csv-with-meta' ); ?></th>
51
+ <td><?php _e( "You can use those labels if you want to set data adapted to the WooCommerce default user columns", 'import-users-from-csv-with-meta' ); ?>
52
+ <ol>
53
+ <li>billing_first_name</li>
54
+ <li>billing_last_name</li>
55
+ <li>billing_company</li>
56
+ <li>billing_address_1</li>
57
+ <li>billing_address_2</li>
58
+ <li>billing_city</li>
59
+ <li>billing_postcode</li>
60
+ <li>billing_country</li>
61
+ <li>billing_state</li>
62
+ <li>billing_phone</li>
63
+ <li>billing_email</li>
64
+ <li>shipping_first_name</li>
65
+ <li>shipping_last_name</li>
66
+ <li>shipping_company</li>
67
+ <li>shipping_address_1</li>
68
+ <li>shipping_address_2</li>
69
+ <li>shipping_city</li>
70
+ <li>shipping_postcode</li>
71
+ <li>shipping_country</li>
72
+ <li>shipping_state</li>
73
+ </ol>
74
+ </td>
75
+ </tr>
76
+ <?php
77
+ }
78
+
79
+ }
80
+
81
+ new ACUI_WooCommerce();
assets/iontics_logo.svg CHANGED
@@ -1,29 +1,29 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!-- Generator: Adobe Illustrator 19.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
- <svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
- width="114px" height="49.3px" viewBox="0 0 114 49.3" style="enable-background:new 0 0 114 49.3;" xml:space="preserve">
5
- <style type="text/css">
6
- .st0{fill:#333333;}
7
- .st1{fill:#C1D548;}
8
- </style>
9
- <g>
10
- <path class="st0" d="M8,7.3h0.3c1.6,0,3,1.3,3,3l0,0c0,1.6-1.3,3-3,3H8c-1.6-0.1-3-1.4-3-3.1l0,0C5,8.6,6.3,7.3,8,7.3z M5,16.1
11
- l1.9,0.7c0.8,0.3,1.7,0.3,2.5,0l1.9-0.7v25.4H5V16.1z"/>
12
- <path class="st0" d="M14.4,23c0-3.1,1.1-7.4,8.6-7.4c1.9,0,4.2,0.4,5.7,1.4c2.3,1.5,2.6,3.6,2.6,5.7v12.2c0,4.6-3.1,7.1-8.7,7.1
13
- c-8.3,0-8.3-5.8-8.3-7.7L14.4,23L14.4,23z M20.7,35.3c0,0.6,0,2.6,2.2,2.6c2.2,0,2.2-1.7,2.2-2.7V22.4c0-1.5-0.2-3.1-2.1-3.1
14
- c-2.3,0-2.3,1.9-2.3,3.1V35.3z"/>
15
- <path class="st0" d="M34.4,16.1h6.4L40.8,18c1.2-1.2,2.6-2.4,5.5-2.4c1.9,0,3.5,0.7,4.3,1.7c1.2,1.3,1.2,2.8,1.2,4.3v19.8h-6.2
16
- V22.8c0-1.4-0.1-3.1-2.2-3.1c-2.6,0-2.6,2.2-2.6,3.4v18.3h-6.3C34.4,41.4,34.4,16.1,34.4,16.1z"/>
17
- <path class="st1" d="M55.2,20L55.1,7h6.3v9.1h3.8V20h-3.8v14.5c0,1.6,0.3,2.8,2.9,2.8c0.4,0,0.7-0.1,1.1-0.1v4.2
18
- c-0.4,0.1-1.2,0.3-3.3,0.3c-6,0-6.9-2.1-6.9-5.3L55.2,20"/>
19
- <path class="st1" d="M70.5,6.9h0.3c1.6,0,3,1.3,3,3l0,0c0,1.6-1.3,3-3,3h-0.3c-1.6,0-3-1.3-3-3l0,0C67.5,8.3,68.8,6.9,70.5,6.9z"/>
20
- <path class="st1" d="M87.4,25.7v-3.1c0-0.9,0-2.8-2.3-2.8c-2.6,0-2.6,2.2-2.6,3.5v11c0,1.2,0,3.3,2.5,3.3c2.4,0,2.5-2.2,2.5-3.3
21
- v-2.9h6.3v2.9c0,5.2-2.9,7.7-8.7,7.7c-1.4,0-4.3-0.2-6.4-1.7c-2.1-1.5-2.4-3.6-2.4-5.6V23.4c0-1.7,0.4-3.6,1.5-4.9
22
- c1.7-2,4.5-2.8,7.3-2.8c2.3,0,4.8,0.6,6.4,1.8c1.6,1.3,2.2,2.9,2.2,5.3v2.9H87.4z"/>
23
- <path class="st1" d="M67.5,16.1l1.9,0.7c0.8,0.3,1.7,0.3,2.5,0l1.9-0.7v25.4h-6.3V16.1z"/>
24
- <path class="st1" d="M95.3,32.6h5.8c0,3.6,0,5.2,2.5,5.2c1.4,0,2.5-0.6,2.5-2.8c0-1.5-0.1-2.2-1.9-3.3l-5.3-3.5
25
- c-0.4-0.2-1.3-1.1-1.8-1.5c-0.7-0.8-1.5-1.8-1.5-4.5c0-5.3,3.7-6.5,8.2-6.5c5.5,0,7.7,2.2,7.7,5.9v2.8h-5.5c0-2.9,0-4.6-2.3-4.6
26
- c-0.9,0-2.2,0.2-2.2,2.2c0,0.7,0.1,1.6,1.8,2.8l5.8,3.8c0.4,0.2,1.5,1.3,1.8,1.7c0.8,1,0.9,2.3,0.9,3.9c0,3.3,0,7.8-8.4,7.8
27
- c-6.8,0-8.2-3.3-8.2-6.7V32.6z"/>
28
- </g>
29
- </svg>
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 19.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
+ width="114px" height="49.3px" viewBox="0 0 114 49.3" style="enable-background:new 0 0 114 49.3;" xml:space="preserve">
5
+ <style type="text/css">
6
+ .st0{fill:#333333;}
7
+ .st1{fill:#C1D548;}
8
+ </style>
9
+ <g>
10
+ <path class="st0" d="M8,7.3h0.3c1.6,0,3,1.3,3,3l0,0c0,1.6-1.3,3-3,3H8c-1.6-0.1-3-1.4-3-3.1l0,0C5,8.6,6.3,7.3,8,7.3z M5,16.1
11
+ l1.9,0.7c0.8,0.3,1.7,0.3,2.5,0l1.9-0.7v25.4H5V16.1z"/>
12
+ <path class="st0" d="M14.4,23c0-3.1,1.1-7.4,8.6-7.4c1.9,0,4.2,0.4,5.7,1.4c2.3,1.5,2.6,3.6,2.6,5.7v12.2c0,4.6-3.1,7.1-8.7,7.1
13
+ c-8.3,0-8.3-5.8-8.3-7.7L14.4,23L14.4,23z M20.7,35.3c0,0.6,0,2.6,2.2,2.6c2.2,0,2.2-1.7,2.2-2.7V22.4c0-1.5-0.2-3.1-2.1-3.1
14
+ c-2.3,0-2.3,1.9-2.3,3.1V35.3z"/>
15
+ <path class="st0" d="M34.4,16.1h6.4L40.8,18c1.2-1.2,2.6-2.4,5.5-2.4c1.9,0,3.5,0.7,4.3,1.7c1.2,1.3,1.2,2.8,1.2,4.3v19.8h-6.2
16
+ V22.8c0-1.4-0.1-3.1-2.2-3.1c-2.6,0-2.6,2.2-2.6,3.4v18.3h-6.3C34.4,41.4,34.4,16.1,34.4,16.1z"/>
17
+ <path class="st1" d="M55.2,20L55.1,7h6.3v9.1h3.8V20h-3.8v14.5c0,1.6,0.3,2.8,2.9,2.8c0.4,0,0.7-0.1,1.1-0.1v4.2
18
+ c-0.4,0.1-1.2,0.3-3.3,0.3c-6,0-6.9-2.1-6.9-5.3L55.2,20"/>
19
+ <path class="st1" d="M70.5,6.9h0.3c1.6,0,3,1.3,3,3l0,0c0,1.6-1.3,3-3,3h-0.3c-1.6,0-3-1.3-3-3l0,0C67.5,8.3,68.8,6.9,70.5,6.9z"/>
20
+ <path class="st1" d="M87.4,25.7v-3.1c0-0.9,0-2.8-2.3-2.8c-2.6,0-2.6,2.2-2.6,3.5v11c0,1.2,0,3.3,2.5,3.3c2.4,0,2.5-2.2,2.5-3.3
21
+ v-2.9h6.3v2.9c0,5.2-2.9,7.7-8.7,7.7c-1.4,0-4.3-0.2-6.4-1.7c-2.1-1.5-2.4-3.6-2.4-5.6V23.4c0-1.7,0.4-3.6,1.5-4.9
22
+ c1.7-2,4.5-2.8,7.3-2.8c2.3,0,4.8,0.6,6.4,1.8c1.6,1.3,2.2,2.9,2.2,5.3v2.9H87.4z"/>
23
+ <path class="st1" d="M67.5,16.1l1.9,0.7c0.8,0.3,1.7,0.3,2.5,0l1.9-0.7v25.4h-6.3V16.1z"/>
24
+ <path class="st1" d="M95.3,32.6h5.8c0,3.6,0,5.2,2.5,5.2c1.4,0,2.5-0.6,2.5-2.8c0-1.5-0.1-2.2-1.9-3.3l-5.3-3.5
25
+ c-0.4-0.2-1.3-1.1-1.8-1.5c-0.7-0.8-1.5-1.8-1.5-4.5c0-5.3,3.7-6.5,8.2-6.5c5.5,0,7.7,2.2,7.7,5.9v2.8h-5.5c0-2.9,0-4.6-2.3-4.6
26
+ c-0.9,0-2.2,0.2-2.2,2.2c0,0.7,0.1,1.6,1.8,2.8l5.8,3.8c0.4,0.2,1.5,1.3,1.8,1.7c0.8,1,0.9,2.3,0.9,3.9c0,3.3,0,7.8-8.4,7.8
27
+ c-6.8,0-8.2-3.3-8.2-6.7V32.6z"/>
28
+ </g>
29
+ </svg>
classes/columns.php CHANGED
@@ -3,9 +3,22 @@
3
  if ( ! defined( 'ABSPATH' ) ) exit;
4
 
5
  class ACUI_Columns{
 
 
 
 
 
 
 
 
 
 
 
 
6
  public static function admin_gui(){
7
  $show_profile_fields = get_option( "acui_show_profile_fields");
8
- $headers = get_option("acui_columns");
 
9
  ?>
10
  <h3><?php _e( 'Extra profile fields', 'import-users-from-csv-with-meta' ); ?></h3>
11
  <table class="form-table">
@@ -43,13 +56,51 @@ class ACUI_Columns{
43
 
44
  <?php else: ?>
45
  <li><?php _e( 'There is no columns loaded yet', 'import-users-from-csv-with-meta' ); ?></li>
46
- <?php endif; ?>
 
47
  </ol>
48
  </td>
49
  </tr>
50
  </tbody>
51
  </table>
52
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
53
  <script type="text/javascript">
54
  jQuery( document ).ready( function( $ ){
55
  $( '.reset_fields_profile' ).click( function( e ){
@@ -61,10 +112,47 @@ class ACUI_Columns{
61
  return;
62
 
63
  $( '#reset-profile-fields' ).submit();
64
-
65
  } );
 
 
 
 
 
 
 
 
 
 
 
 
66
  } )
67
  </script>
68
  <?php
69
  }
70
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  if ( ! defined( 'ABSPATH' ) ) exit;
4
 
5
  class ACUI_Columns{
6
+ function __construct(){
7
+ //add_action( 'admin_enqueue_scripts', array( $this, 'enqueue' ) );
8
+ }
9
+
10
+ function enqueue( $hook ) {
11
+ if( $hook != 'tools_page_acui' || !isset( $_GET['tab'] ) || $_GET['tab'] != 'columns' )
12
+ return;
13
+
14
+ wp_enqueue_script( 'acui-datatables', '//cdn.datatables.net/1.10.20/js/jquery.dataTables.min.js', array( 'jquery' ), '1.10.20' );
15
+ wp_enqueue_style( 'acui-datatables', '//cdn.datatables.net/1.10.20/css/jquery.dataTables.min.css', array(), '1.10.20' );
16
+ }
17
+
18
  public static function admin_gui(){
19
  $show_profile_fields = get_option( "acui_show_profile_fields");
20
+ $headers = get_option("acui_columns");
21
+ //$headers_extended = self::get_extended();
22
  ?>
23
  <h3><?php _e( 'Extra profile fields', 'import-users-from-csv-with-meta' ); ?></h3>
24
  <table class="form-table">
56
 
57
  <?php else: ?>
58
  <li><?php _e( 'There is no columns loaded yet', 'import-users-from-csv-with-meta' ); ?></li>
59
+ <?php endif;
60
+ ?>
61
  </ol>
62
  </td>
63
  </tr>
64
  </tbody>
65
  </table>
66
 
67
+ <?php /*
68
+ <h2><?php _e( 'Profile fields', 'import-users-from-csv-with-meta' ); ?></h2>
69
+ <form id="form_table_headers_extended" action="" method="POST">
70
+ <table id="headers_extended">
71
+ <thead>
72
+ <tr>
73
+ <td>Key</td>
74
+ <td>Label</td>
75
+ <td>Show</td>
76
+ <td>Type</td>
77
+ </tr>
78
+ </thead>
79
+ <tfoot>
80
+ <tr>
81
+ <td>Key</td>
82
+ <td>Label</td>
83
+ <td>Show</td>
84
+ <td>Type</td>
85
+ </tr>
86
+ </tfoot>
87
+ <tbody>
88
+ <?php foreach ( $headers_extended as $key => $header_extended): ?>
89
+ <tr>
90
+ <td><?php echo $key; ?></td>
91
+ <td><input type="text" name="<?php echo $key; ?>[label]" value="<?php echo $header_extended['label']; ?>"></td>
92
+ <td><input type="checkbox" name="<?php echo $key; ?>[show]" <?php checked( $header_extended['show'] ); ?>></td>
93
+ <td><?php echo $header_extended['type']; ?></td>
94
+ </tr>
95
+ <?php endforeach; ?>
96
+ </tbody>
97
+ </table>
98
+
99
+ <?php wp_nonce_field( 'codection-security', 'security' ); ?>
100
+ <input type="submit" class="button button-primary" value="Save extended fields">
101
+ </form>
102
+ */ ?>
103
+
104
  <script type="text/javascript">
105
  jQuery( document ).ready( function( $ ){
106
  $( '.reset_fields_profile' ).click( function( e ){
112
  return;
113
 
114
  $( '#reset-profile-fields' ).submit();
 
115
  } );
116
+
117
+ /*var table_headers_extended = $( '#headers_extended' ).DataTable();
118
+
119
+ $( '#form_table_headers_extended' ).on( 'submit', function (e) {
120
+ table_headers_extended.rows().nodes().page.len(-1).draw(false);
121
+
122
+ if( $( this ).valid() ) {
123
+ return true;
124
+ }
125
+
126
+ e.preventDefault();
127
+ });*/
128
  } )
129
  </script>
130
  <?php
131
  }
132
+
133
+ public static function get_extended(){
134
+ $headers_extended = get_option( "acui_columns_extended" );
135
+
136
+ return ( empty( $headers_extended ) ) ? self::init_extended() : $headers_extended;
137
+ }
138
+
139
+ public static function init_extended(){
140
+ $headers = get_option( "acui_columns" );
141
+ $headers_extended = array();
142
+
143
+ foreach ( $headers as $header ) {
144
+ $headers_extended[ $header ] = array(
145
+ 'label' => $header,
146
+ 'show' => true,
147
+ 'type' => 'text'
148
+ );
149
+ }
150
+
151
+ update_option( "acui_columns_extended", $headers_extended );
152
+
153
+ return $headers_extended;
154
+ }
155
+
156
+ }
157
+
158
+ new ACUI_Columns();
classes/doc.php CHANGED
@@ -78,37 +78,6 @@ class ACUI_Doc{
78
  </td>
79
  </tr>
80
 
81
- <?php if( is_plugin_active( 'woocommerce/woocommerce.php' ) ): ?>
82
-
83
- <tr valign="top">
84
- <th scope="row"><?php _e( "WooCommerce is activated", 'import-users-from-csv-with-meta' ); ?></th>
85
- <td><?php _e( "You can use those labels if you want to set data adapted to the WooCommerce default user columns", 'import-users-from-csv-with-meta' ); ?>
86
- <ol>
87
- <li>billing_first_name</li>
88
- <li>billing_last_name</li>
89
- <li>billing_company</li>
90
- <li>billing_address_1</li>
91
- <li>billing_address_2</li>
92
- <li>billing_city</li>
93
- <li>billing_postcode</li>
94
- <li>billing_country</li>
95
- <li>billing_state</li>
96
- <li>billing_phone</li>
97
- <li>billing_email</li>
98
- <li>shipping_first_name</li>
99
- <li>shipping_last_name</li>
100
- <li>shipping_company</li>
101
- <li>shipping_address_1</li>
102
- <li>shipping_address_2</li>
103
- <li>shipping_city</li>
104
- <li>shipping_postcode</li>
105
- <li>shipping_country</li>
106
- <li>shipping_state</li>
107
- </ol>
108
- </td>
109
- </tr>
110
- <?php endif; ?>
111
-
112
  <?php do_action( 'acui_documentation_after_plugins_activated' ); ?>
113
 
114
  <tr valign="top">
78
  </td>
79
  </tr>
80
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
81
  <?php do_action( 'acui_documentation_after_plugins_activated' ); ?>
82
 
83
  <tr valign="top">
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.5.11
7
  Author: codection
8
  Author URI: https://codection.com
9
  License: GPL2
@@ -33,7 +33,6 @@ function acui_loader(){
33
  add_action( "admin_menu", "acui_menu" );
34
  add_action( 'admin_enqueue_scripts', 'acui_admin_enqueue_scripts' );
35
  add_filter( 'plugin_row_meta', 'acui_plugin_row_meta', 10, 2 );
36
- add_action( 'admin_init', 'acui_modify_user_edit_admin' );
37
  add_action( 'wp_ajax_acui_delete_attachment', 'acui_delete_attachment' );
38
  add_action( 'wp_ajax_acui_bulk_delete_attachment', 'acui_bulk_delete_attachment' );
39
  add_filter( 'wp_check_filetype_and_ext', 'acui_wp_check_filetype_and_ext', PHP_INT_MAX, 4 );
@@ -155,7 +154,7 @@ function acui_delete_options(){
155
  }
156
 
157
  function acui_get_wp_users_fields(){
158
- return 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" );
159
  }
160
 
161
  function acui_get_restricted_fields(){
@@ -376,12 +375,13 @@ function acui_save_mail_template( $form_data ){
376
  function acui_extra_user_profile_fields( $user ) {
377
  $acui_restricted_fields = acui_get_restricted_fields();
378
  $headers = get_option("acui_columns");
 
 
379
  if( is_array( $headers ) && !empty( $headers ) ):
380
  ?>
381
  <h3>Extra profile information</h3>
382
 
383
  <table class="form-table"><?php
384
-
385
  foreach ( $headers as $column ):
386
  if( in_array( $column, $acui_restricted_fields ) )
387
  continue;
@@ -414,64 +414,6 @@ function acui_save_extra_user_profile_fields( $user_id ){
414
  endif;
415
  }
416
 
417
- function acui_modify_user_edit_admin(){
418
- global $pagenow;
419
-
420
- if( in_array( $pagenow, array( "user-edit.php", "profile.php" ) ) ){
421
- $acui_columns = get_option("acui_columns");
422
-
423
- if(is_array($acui_columns) && !empty($acui_columns)){
424
- $new_columns = array();
425
- $core_fields = array(
426
- 'username',
427
- 'user_email',
428
- 'first_name',
429
- 'role',
430
- 'last_name',
431
- 'nickname',
432
- 'display_name',
433
- 'description',
434
- 'billing_first_name',
435
- 'billing_last_name',
436
- 'billing_company',
437
- 'billing_address_1',
438
- 'billing_address_2',
439
- 'billing_city',
440
- 'billing_postcode',
441
- 'billing_country',
442
- 'billing_state',
443
- 'billing_phone',
444
- 'billing_email',
445
- 'shipping_first_name',
446
- 'shipping_last_name',
447
- 'shipping_company',
448
- 'shipping_address_1',
449
- 'shipping_address_2',
450
- 'shipping_city',
451
- 'shipping_postcode',
452
- 'shipping_country',
453
- 'shipping_state'
454
- );
455
-
456
- foreach ($acui_columns as $key => $column) {
457
-
458
- if(in_array($column, $core_fields)) {
459
- // error_log('removing column because core '.$column);
460
- continue;
461
- }
462
- if(in_array($column, $new_columns)) {
463
- // error_log('removing column because not unique '.$column);
464
- continue;
465
- }
466
-
467
- array_push($new_columns, $column);
468
- }
469
-
470
- update_option("acui_columns", $new_columns);
471
- }
472
- }
473
- }
474
-
475
  function acui_delete_attachment() {
476
  check_ajax_referer( 'codection-security', 'security' );
477
 
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.5.12
7
  Author: codection
8
  Author URI: https://codection.com
9
  License: GPL2
33
  add_action( "admin_menu", "acui_menu" );
34
  add_action( 'admin_enqueue_scripts', 'acui_admin_enqueue_scripts' );
35
  add_filter( 'plugin_row_meta', 'acui_plugin_row_meta', 10, 2 );
 
36
  add_action( 'wp_ajax_acui_delete_attachment', 'acui_delete_attachment' );
37
  add_action( 'wp_ajax_acui_bulk_delete_attachment', 'acui_bulk_delete_attachment' );
38
  add_filter( 'wp_check_filetype_and_ext', 'acui_wp_check_filetype_and_ext', PHP_INT_MAX, 4 );
154
  }
155
 
156
  function acui_get_wp_users_fields(){
157
+ return array( "id", "user_email", "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" );
158
  }
159
 
160
  function acui_get_restricted_fields(){
375
  function acui_extra_user_profile_fields( $user ) {
376
  $acui_restricted_fields = acui_get_restricted_fields();
377
  $headers = get_option("acui_columns");
378
+
379
+ var_dump( $headers );
380
  if( is_array( $headers ) && !empty( $headers ) ):
381
  ?>
382
  <h3>Extra profile information</h3>
383
 
384
  <table class="form-table"><?php
 
385
  foreach ( $headers as $column ):
386
  if( in_array( $column, $acui_restricted_fields ) )
387
  continue;
414
  endif;
415
  }
416
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
417
  function acui_delete_attachment() {
418
  check_ajax_referer( 'codection-security', 'security' );
419
 
importer.php CHANGED
@@ -28,6 +28,7 @@ function acui_import_users( $file, $form_data, $attach_id = 0, $is_cron = false,
28
  if ( !empty( $profile_group->fields ) ) {
29
  foreach ( $profile_group->fields as $field ) {
30
  $buddypress_fields[] = $field->name;
 
31
  }
32
  }
33
  }
28
  if ( !empty( $profile_group->fields ) ) {
29
  foreach ( $profile_group->fields as $field ) {
30
  $buddypress_fields[] = $field->name;
31
+ $buddypress_types[] = $field->type;
32
  }
33
  }
34
  }
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.4
7
- Stable tag: 1.15.5.11
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -99,6 +99,10 @@ Plugin will automatically detect:
99
 
100
  == Changelog ==
101
 
 
 
 
 
102
  = 1.15.5.11 =
103
  * Deletion process performance improved
104
  * Now you can specify if only want to delete users of specified role using a new attribute in the frontend import
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.4
7
+ Stable tag: 1.15.5.12
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
99
 
100
  == Changelog ==
101
 
102
+ = 1.15.5.12 =
103
+ * Bug fixed in BuddyPress importer
104
+ * Little improvement in extra profile fields
105
+
106
  = 1.15.5.11 =
107
  * Deletion process performance improved
108
  * Now you can specify if only want to delete users of specified role using a new attribute in the frontend import