Import users from CSV with meta - Version 1.16.1.3

Version Description

  • BuddyPress member type is now included in the export
Download this release

Release Info

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

Code changes from version 1.16.1.2 to 1.16.1.3

addons/buddypress.php CHANGED
@@ -102,12 +102,17 @@ class ACUI_Buddypress{
102
  return implode( ",", $groups['groups'] );
103
  }
104
 
 
 
 
 
105
  function export_columns( $row ){
106
  foreach ( $this->get_fields() as $key ) {
107
  $row[] = $key;
108
  }
109
 
110
  $row[] = 'bp_group';
 
111
 
112
  return $row;
113
  }
@@ -118,6 +123,7 @@ class ACUI_Buddypress{
118
  }
119
 
120
  $row[] = $this->get_groups( $user );
 
121
 
122
  return $row;
123
  }
102
  return implode( ",", $groups['groups'] );
103
  }
104
 
105
+ function get_member_type( $user_id ){
106
+ return implode( ",", bp_get_member_type( $user_id, false ) );
107
+ }
108
+
109
  function export_columns( $row ){
110
  foreach ( $this->get_fields() as $key ) {
111
  $row[] = $key;
112
  }
113
 
114
  $row[] = 'bp_group';
115
+ $row[] = 'bp_member_type';
116
 
117
  return $row;
118
  }
123
  }
124
 
125
  $row[] = $this->get_groups( $user );
126
+ $row[] = $this->get_member_type( $user );
127
 
128
  return $row;
129
  }
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.16.1.2
7
  Author: codection
8
  Author URI: https://codection.com
9
  License: GPL2
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.16.1.3
7
  Author: codection
8
  Author URI: https://codection.com
9
  License: GPL2
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.5.1
7
- Stable tag: 1.16.1.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -99,6 +99,9 @@ Plugin will automatically detect:
99
 
100
  == Changelog ==
101
 
 
 
 
102
  = 1.16.1.2 =
103
  * Usability improve when using delete users not present in CSV (change role options is disabled because they can't run)
104
  * Performance optimization, if user is deleted, it cannot be tried to change role
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.5.1
7
+ Stable tag: 1.16.1.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
99
 
100
  == Changelog ==
101
 
102
+ = 1.16.1.3 =
103
+ * BuddyPress member type is now included in the export
104
+
105
  = 1.16.1.2 =
106
  * Usability improve when using delete users not present in CSV (change role options is disabled because they can't run)
107
  * Performance optimization, if user is deleted, it cannot be tried to change role