Version Description
- Role import working in cron jobs
Download this release
Release Info
Developer | carazo |
Plugin | Import users from CSV with meta |
Version | 1.11.3.6 |
Comparing to | |
See all releases |
Code changes from version 1.11.3.5 to 1.11.3.6
- import-users-from-csv-with-meta.php +5 -2
- importer.php +11 -0
- readme.txt +7 -4
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
|
@@ -93,6 +93,7 @@ function acui_activate(){
|
|
93 |
add_option( "acui_cron_path_to_move_auto_rename" );
|
94 |
add_option( "acui_cron_period" );
|
95 |
add_option( "acui_cron_role" );
|
|
|
96 |
add_option( "acui_cron_log" );
|
97 |
add_option( "acui_cron_allow_multiple_accounts", "not_allowed" );
|
98 |
|
@@ -137,6 +138,7 @@ function acui_delete_options(){
|
|
137 |
delete_option( "acui_cron_path_to_move_auto_rename" );
|
138 |
delete_option( "acui_cron_period" );
|
139 |
delete_option( "acui_cron_role" );
|
|
|
140 |
delete_option( "acui_cron_log" );
|
141 |
delete_option( "acui_cron_allow_multiple_accounts" );
|
142 |
|
@@ -479,9 +481,9 @@ function acui_manage_cron_process( $form_data ){
|
|
479 |
update_option( "acui_cron_path_to_move", $form_data["path_to_move"] );
|
480 |
update_option( "acui_cron_period", $form_data["period"] );
|
481 |
update_option( "acui_cron_role", $form_data["role"] );
|
|
|
482 |
update_option( "acui_cron_delete_users_assign_posts", $form_data["cron-delete-users-assign-posts"] );
|
483 |
?>
|
484 |
-
|
485 |
<div class="updated">
|
486 |
<p><?php _e( 'Settings updated correctly', 'import-users-from-csv-with-meta' ) ?></p>
|
487 |
</div>
|
@@ -494,6 +496,7 @@ function acui_cron_process(){
|
|
494 |
$form_data = array();
|
495 |
$form_data[ "path_to_file" ] = get_option( "acui_cron_path_to_file");
|
496 |
$form_data[ "role" ] = get_option( "acui_cron_role");
|
|
|
497 |
$form_data[ "empty_cell_action" ] = "leave";
|
498 |
|
499 |
ob_start();
|
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.6
|
7 |
Author: codection
|
8 |
Author URI: https://codection.com
|
9 |
License: GPL2
|
93 |
add_option( "acui_cron_path_to_move_auto_rename" );
|
94 |
add_option( "acui_cron_period" );
|
95 |
add_option( "acui_cron_role" );
|
96 |
+
add_option( "acui_cron_update_roles_existing_users" );
|
97 |
add_option( "acui_cron_log" );
|
98 |
add_option( "acui_cron_allow_multiple_accounts", "not_allowed" );
|
99 |
|
138 |
delete_option( "acui_cron_path_to_move_auto_rename" );
|
139 |
delete_option( "acui_cron_period" );
|
140 |
delete_option( "acui_cron_role" );
|
141 |
+
delete_option( "acui_cron_update_roles_existing_users" );
|
142 |
delete_option( "acui_cron_log" );
|
143 |
delete_option( "acui_cron_allow_multiple_accounts" );
|
144 |
|
481 |
update_option( "acui_cron_path_to_move", $form_data["path_to_move"] );
|
482 |
update_option( "acui_cron_period", $form_data["period"] );
|
483 |
update_option( "acui_cron_role", $form_data["role"] );
|
484 |
+
update_option( "acui_cron_update_roles_existing_users", $form_data["update-roles-existing-users"] );
|
485 |
update_option( "acui_cron_delete_users_assign_posts", $form_data["cron-delete-users-assign-posts"] );
|
486 |
?>
|
|
|
487 |
<div class="updated">
|
488 |
<p><?php _e( 'Settings updated correctly', 'import-users-from-csv-with-meta' ) ?></p>
|
489 |
</div>
|
496 |
$form_data = array();
|
497 |
$form_data[ "path_to_file" ] = get_option( "acui_cron_path_to_file");
|
498 |
$form_data[ "role" ] = get_option( "acui_cron_role");
|
499 |
+
$form_data[ "update_roles_existing_users" ] = get_option( "acui_cron_update_roles_existing_users");
|
500 |
$form_data[ "empty_cell_action" ] = "leave";
|
501 |
|
502 |
ob_start();
|
importer.php
CHANGED
@@ -1348,6 +1348,7 @@ function acui_options(){
|
|
1348 |
$path_to_file = get_option( "acui_cron_path_to_file");
|
1349 |
$period = get_option( "acui_cron_period");
|
1350 |
$role = get_option( "acui_cron_role");
|
|
|
1351 |
$move_file_cron = get_option( "acui_move_file_cron");
|
1352 |
$path_to_move = get_option( "acui_cron_path_to_move");
|
1353 |
$path_to_move_auto_rename = get_option( "acui_cron_path_to_move_auto_rename");
|
@@ -1366,6 +1367,9 @@ function acui_options(){
|
|
1366 |
if( empty( $cron_delete_users ) )
|
1367 |
$cron_delete_users = false;
|
1368 |
|
|
|
|
|
|
|
1369 |
if( empty( $cron_delete_users_assign_posts ) )
|
1370 |
$cron_delete_users_assign_posts = '';
|
1371 |
|
@@ -1495,6 +1499,13 @@ function acui_options(){
|
|
1495 |
<p class="description"><?php _e( 'Which role would be used to import users?', 'import-users-from-csv-with-meta' ); ?></p>
|
1496 |
</td>
|
1497 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1498 |
<tr class="form-field form-required">
|
1499 |
<th scope="row"><label for="move-file-cron"><?php _e( 'Move file after import?', 'import-users-from-csv-with-meta' ); ?></label></th>
|
1500 |
<td>
|
1348 |
$path_to_file = get_option( "acui_cron_path_to_file");
|
1349 |
$period = get_option( "acui_cron_period");
|
1350 |
$role = get_option( "acui_cron_role");
|
1351 |
+
$update_roles_existing_users = get_option( "acui_cron_update_roles_existing_users");
|
1352 |
$move_file_cron = get_option( "acui_move_file_cron");
|
1353 |
$path_to_move = get_option( "acui_cron_path_to_move");
|
1354 |
$path_to_move_auto_rename = get_option( "acui_cron_path_to_move_auto_rename");
|
1367 |
if( empty( $cron_delete_users ) )
|
1368 |
$cron_delete_users = false;
|
1369 |
|
1370 |
+
if( empty( $update_roles_existing_users) )
|
1371 |
+
$update_roles_existing_users = false;
|
1372 |
+
|
1373 |
if( empty( $cron_delete_users_assign_posts ) )
|
1374 |
$cron_delete_users_assign_posts = '';
|
1375 |
|
1499 |
<p class="description"><?php _e( 'Which role would be used to import users?', 'import-users-from-csv-with-meta' ); ?></p>
|
1500 |
</td>
|
1501 |
</tr>
|
1502 |
+
<tr class="form-field form-required">
|
1503 |
+
<th scope="row"><label for="update-roles-existing-users"><?php _e( 'Update roles for existing users?', 'import-users-from-csv-with-meta' ); ?></label></th>
|
1504 |
+
<td>
|
1505 |
+
<input type="checkbox" name="update-roles-existing-users" value="yes" <?php if( $update_roles_existing_users == 'yes' ) echo "checked='checked'"; ?>/>
|
1506 |
+
</td>
|
1507 |
+
</tr>
|
1508 |
+
|
1509 |
<tr class="form-field form-required">
|
1510 |
<th scope="row"><label for="move-file-cron"><?php _e( 'Move file after import?', 'import-users-from-csv-with-meta' ); ?></label></th>
|
1511 |
<td>
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: carazo, hornero
|
|
3 |
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.
|
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,8 +71,11 @@ Plugin will automatically detect:
|
|
71 |
|
72 |
== Changelog ==
|
73 |
|
74 |
-
= 1.11.3.
|
75 |
-
*
|
|
|
|
|
|
|
76 |
|
77 |
= 1.11.3.4 =
|
78 |
* Bug fixed: thanks to @oldfieldmike for reporting and fixing a bug present when BuddyPress was active (https://wordpress.org/support/topic/bp_xprofile_group/#post-10265833)
|
3 |
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.7
|
7 |
+
Stable tag: 1.11.3.6
|
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.6 =
|
75 |
+
* Role import working in cron jobs
|
76 |
+
|
77 |
+
= 1.11.3.5 =
|
78 |
+
* SMTP tab hidden for user which are not using this option
|
79 |
|
80 |
= 1.11.3.4 =
|
81 |
* Bug fixed: thanks to @oldfieldmike for reporting and fixing a bug present when BuddyPress was active (https://wordpress.org/support/topic/bp_xprofile_group/#post-10265833)
|