Version Description
- Extra profile fields now can be reseted
Download this release
Release Info
Developer | carazo |
Plugin | Import users from CSV with meta |
Version | 1.15.5.10 |
Comparing to | |
See all releases |
Code changes from version 1.15.5.9 to 1.15.5.10
- classes/columns.php +26 -0
- import-users-from-csv-with-meta.php +6 -2
- readme.txt +5 -2
classes/columns.php
CHANGED
@@ -21,6 +21,16 @@ class ACUI_Columns{
|
|
21 |
</form>
|
22 |
</td>
|
23 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
<tr valign="top">
|
25 |
<th scope="row"><?php _e( 'Extra profile fields loadad in previous files', 'import-users-from-csv-with-meta' ); ?></th>
|
26 |
<td><small><em><?php _e( '(if you load another CSV with different columns, the new ones will replace this list)', 'import-users-from-csv-with-meta' ); ?></em></small>
|
@@ -39,6 +49,22 @@ class ACUI_Columns{
|
|
39 |
</tr>
|
40 |
</tbody>
|
41 |
</table>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
<?php
|
43 |
}
|
44 |
}
|
21 |
</form>
|
22 |
</td>
|
23 |
</tr>
|
24 |
+
<tr valign="top">
|
25 |
+
<th scope="row"><?php _e( 'Reset fields in profile?', 'import-users-from-csv-with-meta' ); ?></th>
|
26 |
+
<td>
|
27 |
+
<form method="POST" enctype="multipart/form-data" action="" accept-charset="utf-8" id="reset-profile-fields">
|
28 |
+
<input type="hidden" name="reset-profile-fields-action" value="reset"/>
|
29 |
+
<?php wp_nonce_field( 'codection-security', 'security' ); ?>
|
30 |
+
<input class="button-primary reset_fields_profile" type="submit" value="<?php _e( 'Reset fields', 'import-users-from-csv-with-meta'); ?>"/>
|
31 |
+
</form>
|
32 |
+
</td>
|
33 |
+
</tr>
|
34 |
<tr valign="top">
|
35 |
<th scope="row"><?php _e( 'Extra profile fields loadad in previous files', 'import-users-from-csv-with-meta' ); ?></th>
|
36 |
<td><small><em><?php _e( '(if you load another CSV with different columns, the new ones will replace this list)', 'import-users-from-csv-with-meta' ); ?></em></small>
|
49 |
</tr>
|
50 |
</tbody>
|
51 |
</table>
|
52 |
+
|
53 |
+
<script type="text/javascript">
|
54 |
+
jQuery( document ).ready( function( $ ){
|
55 |
+
$( '.reset_fields_profile' ).click( function( e ){
|
56 |
+
e.preventDefault();
|
57 |
+
|
58 |
+
var r = confirm( "<?php _e( 'Are you sure to reset all fields, it will delete current fields and they will restored in next import', 'import-users-from-csv-with-meta' ); ?>" );
|
59 |
+
|
60 |
+
if( !r )
|
61 |
+
return;
|
62 |
+
|
63 |
+
$( '#reset-profile-fields' ).submit();
|
64 |
+
|
65 |
+
} );
|
66 |
+
} )
|
67 |
+
</script>
|
68 |
<?php
|
69 |
}
|
70 |
}
|
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.
|
7 |
Author: codection
|
8 |
Author URI: https://codection.com
|
9 |
License: GPL2
|
@@ -329,7 +329,11 @@ function acui_manage_extra_profile_fields( $form_data ){
|
|
329 |
wp_die( __( 'Nonce check failed', 'import-users-from-csv-with-meta' ) );
|
330 |
}
|
331 |
|
332 |
-
|
|
|
|
|
|
|
|
|
333 |
}
|
334 |
|
335 |
function acui_save_mail_template( $form_data ){
|
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.10
|
7 |
Author: codection
|
8 |
Author URI: https://codection.com
|
9 |
License: GPL2
|
329 |
wp_die( __( 'Nonce check failed', 'import-users-from-csv-with-meta' ) );
|
330 |
}
|
331 |
|
332 |
+
if( isset( $form_data['show-profile-fields-action'] ) && $form_data['show-profile-fields-action'] == 'update' )
|
333 |
+
update_option( "acui_show_profile_fields", isset( $form_data["show-profile-fields"] ) && $form_data["show-profile-fields"] == "yes" );
|
334 |
+
|
335 |
+
if( isset( $form_data['reset-profile-fields-action'] ) && $form_data['reset-profile-fields-action'] == 'reset' )
|
336 |
+
update_option( "acui_columns", array() );
|
337 |
}
|
338 |
|
339 |
function acui_save_mail_template( $form_data ){
|
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.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -99,9 +99,12 @@ Plugin will automatically detect:
|
|
99 |
|
100 |
== Changelog ==
|
101 |
|
|
|
|
|
|
|
102 |
= 1.15.5.9 =
|
103 |
* Array to string conversion fixed in emails being sent
|
104 |
-
* Problems importing data from WooCommerce Membership fixed
|
105 |
|
106 |
= 1.15.5.8 =
|
107 |
* Export improved to avoid more data to be exported as date
|
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.10
|
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.10 =
|
103 |
+
* Extra profile fields now can be reseted
|
104 |
+
|
105 |
= 1.15.5.9 =
|
106 |
* Array to string conversion fixed in emails being sent
|
107 |
+
* Problems importing data from WooCommerce Membership fixed (thanks to grope-ecomedia)
|
108 |
|
109 |
= 1.15.5.8 =
|
110 |
* Export improved to avoid more data to be exported as date
|