Version Description
- New hooks added thanks to @malcolm-oph (https://wordpress.org/support/topic/using-filters-to-add-data-columns/)
Download this release
Release Info
Developer | carazo |
Plugin | Import users from CSV with meta |
Version | 1.11.3.9 |
Comparing to | |
See all releases |
Code changes from version 1.11.3.8.1 to 1.11.3.9
- import-users-from-csv-with-meta.php +1 -1
- importer.php +4 -0
- readme.txt +4 -1
import-users-from-csv-with-meta.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Import users from CSV with meta
|
4 |
Plugin URI: https://www.codection.com
|
5 |
Description: This plugins allows to import users using CSV files to WP database automatically
|
6 |
-
Version: 1.11.3.
|
7 |
Author: codection
|
8 |
Author URI: https://codection.com
|
9 |
License: GPL2
|
3 |
Plugin Name: Import users from CSV with meta
|
4 |
Plugin URI: https://www.codection.com
|
5 |
Description: This plugins allows to import users using CSV files to WP database automatically
|
6 |
+
Version: 1.11.3.9
|
7 |
Author: codection
|
8 |
Author URI: https://codection.com
|
9 |
License: GPL2
|
importer.php
CHANGED
@@ -124,6 +124,8 @@ function acui_import_users( $file, $form_data, $attach_id = 0, $is_cron = false,
|
|
124 |
}
|
125 |
|
126 |
if( $row == 0 ):
|
|
|
|
|
127 |
// check min columns username - email
|
128 |
if(count( $data ) < 2){
|
129 |
echo "<div id='message' class='error'>" . __( 'File must contain at least 2 columns: username and email', 'import-users-from-csv-with-meta' ) . "</div>";
|
@@ -160,6 +162,8 @@ function acui_import_users( $file, $form_data, $attach_id = 0, $is_cron = false,
|
|
160 |
<?php
|
161 |
$row++;
|
162 |
else:
|
|
|
|
|
163 |
if( count( $data ) != $columns ): // if number of columns is not the same that columns in header
|
164 |
echo '<script>alert("' . __( 'Row number', 'import-users-from-csv-with-meta' ) . " $row " . __( 'does not have the same columns than the header, we are going to skip', 'import-users-from-csv-with-meta') . '");</script>';
|
165 |
continue;
|
124 |
}
|
125 |
|
126 |
if( $row == 0 ):
|
127 |
+
$data = apply_filters( 'pre_acui_import_header', $data );
|
128 |
+
|
129 |
// check min columns username - email
|
130 |
if(count( $data ) < 2){
|
131 |
echo "<div id='message' class='error'>" . __( 'File must contain at least 2 columns: username and email', 'import-users-from-csv-with-meta' ) . "</div>";
|
162 |
<?php
|
163 |
$row++;
|
164 |
else:
|
165 |
+
$data = apply_filters( 'pre_acui_import_single_user_data', $data, $headers );
|
166 |
+
|
167 |
if( count( $data ) != $columns ): // if number of columns is not the same that columns in header
|
168 |
echo '<script>alert("' . __( 'Row number', 'import-users-from-csv-with-meta' ) . " $row " . __( 'does not have the same columns than the header, we are going to skip', 'import-users-from-csv-with-meta') . '");</script>';
|
169 |
continue;
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://paypal.me/codection
|
|
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: 4.9.8
|
7 |
-
Stable tag: 1.11.3.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -71,6 +71,9 @@ Plugin will automatically detect:
|
|
71 |
|
72 |
== Changelog ==
|
73 |
|
|
|
|
|
|
|
74 |
= 1.11.3.8.1 =
|
75 |
* Fixed bug thanks to @xenator for discovering the bug (https://wordpress.org/support/topic/uncaught-error-while-importing-users/#post-10618130)
|
76 |
|
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: 4.9.8
|
7 |
+
Stable tag: 1.11.3.9
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
71 |
|
72 |
== Changelog ==
|
73 |
|
74 |
+
= 1.11.3.9 =
|
75 |
+
* New hooks added thanks to @malcolm-oph (https://wordpress.org/support/topic/using-filters-to-add-data-columns/)
|
76 |
+
|
77 |
= 1.11.3.8.1 =
|
78 |
* Fixed bug thanks to @xenator for discovering the bug (https://wordpress.org/support/topic/uncaught-error-while-importing-users/#post-10618130)
|
79 |
|