Import users from CSV with meta - Version 1.17.5.2

Version Description

  • New hooks into shortcode form to enable include actions from there
Download this release

Release Info

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

Code changes from version 1.17.5.1 to 1.17.5.2

classes/frontend.php CHANGED
@@ -386,6 +386,8 @@ class ACUI_Frontend{
386
  $form_data[ "empty_cell_action" ] = "leave";
387
  $form_data[ "activate_users_wp_members" ] = empty( get_option( "acui_frontend_activate_users_wp_members" ) ) ? 'no_activate' : get_option( "acui_frontend_activate_users_wp_members" );
388
  $form_data[ "security" ] = wp_create_nonce( "codection-security" );
 
 
389
 
390
  $acui_import = new ACUI_Import();
391
  $acui_import->fileupload_process( $form_data, false, true );
@@ -395,13 +397,26 @@ class ACUI_Frontend{
395
  do_action( 'acui_post_frontend_import' );
396
  else:
397
  ?>
 
 
 
398
  <form method="POST" enctype="multipart/form-data" action="" accept-charset="utf-8" class="acui_frontend_form">
 
 
399
  <label><?php _e( 'CSV file <span class="description">(required)</span>', 'import-users-from-csv-with-meta' ); ?></label></th>
400
  <input class="acui_frontend_file" type="file" name="uploadfile" id="uploadfile" size="35" class="uploadfile" />
 
 
 
401
  <input class="acui_frontend_submit" type="submit" value="<?php _e( 'Upload and process', 'import-users-from-csv-with-meta' ); ?>"/>
402
 
 
 
403
  <?php wp_nonce_field( 'codection-security', 'security' ); ?>
404
  </form>
 
 
 
405
  <?php endif; ?>
406
 
407
  <?php
386
  $form_data[ "empty_cell_action" ] = "leave";
387
  $form_data[ "activate_users_wp_members" ] = empty( get_option( "acui_frontend_activate_users_wp_members" ) ) ? 'no_activate' : get_option( "acui_frontend_activate_users_wp_members" );
388
  $form_data[ "security" ] = wp_create_nonce( "codection-security" );
389
+
390
+ $form_data = apply_filters( 'acui_frontend_import_form_data', $form_data );
391
 
392
  $acui_import = new ACUI_Import();
393
  $acui_import->fileupload_process( $form_data, false, true );
397
  do_action( 'acui_post_frontend_import' );
398
  else:
399
  ?>
400
+
401
+ <?php do_action( 'acui_frontend_import_before_form' ); ?>
402
+
403
  <form method="POST" enctype="multipart/form-data" action="" accept-charset="utf-8" class="acui_frontend_form">
404
+ <?php do_action( 'acui_frontend_import_before_input_file' ); ?>
405
+
406
  <label><?php _e( 'CSV file <span class="description">(required)</span>', 'import-users-from-csv-with-meta' ); ?></label></th>
407
  <input class="acui_frontend_file" type="file" name="uploadfile" id="uploadfile" size="35" class="uploadfile" />
408
+
409
+ <?php do_action( 'acui_frontend_import_after_input_file' ); ?>
410
+
411
  <input class="acui_frontend_submit" type="submit" value="<?php _e( 'Upload and process', 'import-users-from-csv-with-meta' ); ?>"/>
412
 
413
+ <?php do_action( 'acui_frontend_import_after_submit' ); ?>
414
+
415
  <?php wp_nonce_field( 'codection-security', 'security' ); ?>
416
  </form>
417
+
418
+ <?php do_action( 'acui_frontend_import_after_form' ); ?>
419
+
420
  <?php endif; ?>
421
 
422
  <?php
classes/help.php CHANGED
@@ -6,11 +6,11 @@ class ACUI_Help{
6
  public static function message(){
7
  ?>
8
  <div class="postbox">
9
- <h3 class="hndle"><span>&nbsp;<?php _e( 'Need help with WordPress or WooCommerce?', 'import-users-from-csv-with-meta' ); ?></span></h3>
10
 
11
  <div class="inside" style="display: block;">
12
  <p><?php _e( 'Hi! we are', 'import-users-from-csv-with-meta' ); ?> <a href="https://twitter.com/fjcarazo" target="_blank" title="Javier Carazo">Javier Carazo</a> <?php _e( 'and the team of', 'import-users-from-csv-with-meta' ) ?> <a href="http://codection.com">Codection</a>, <?php _e( 'developers of this plugin.', 'import-users-from-csv-with-meta' ); ?></p>
13
- <p><?php _e( 'We work everyday with WordPress and WooCommerce, if you need help hire us, send us a message to', 'import-users-from-csv-with-meta' ); ?> <a href="mailto:contacto@codection.com">contacto@codection.com</a>.</p>
14
  <div style="clear:both;"></div>
15
  </div>
16
  </div>
6
  public static function message(){
7
  ?>
8
  <div class="postbox">
9
+ <h3 class="hndle"><span>&nbsp;<?php _e( 'Need proffessional help with WordPress or WooCommerce?', 'import-users-from-csv-with-meta' ); ?></span></h3>
10
 
11
  <div class="inside" style="display: block;">
12
  <p><?php _e( 'Hi! we are', 'import-users-from-csv-with-meta' ); ?> <a href="https://twitter.com/fjcarazo" target="_blank" title="Javier Carazo">Javier Carazo</a> <?php _e( 'and the team of', 'import-users-from-csv-with-meta' ) ?> <a href="http://codection.com">Codection</a>, <?php _e( 'developers of this plugin.', 'import-users-from-csv-with-meta' ); ?></p>
13
+ <p><?php _e( 'We work everyday with WordPress and WooCommerce, if you need proffessional help, hire us. You can send us a message to', 'import-users-from-csv-with-meta' ); ?> <a href="mailto:contacto@codection.com">contacto@codection.com</a>.</p>
14
  <div style="clear:both;"></div>
15
  </div>
16
  </div>
classes/import.php CHANGED
@@ -596,7 +596,7 @@ class ACUI_Import{
596
 
597
  $acui_helper->print_row_imported( $row, $data, $errors );
598
 
599
- do_action('post_acui_import_single_user', $headers, $data, $user_id, $role, $positions, $form_data, $is_frontend, $is_cron );
600
 
601
  $mail_for_this_user = false;
602
  if( $is_cron ){
596
 
597
  $acui_helper->print_row_imported( $row, $data, $errors );
598
 
599
+ do_action( 'post_acui_import_single_user', $headers, $data, $user_id, $role, $positions, $form_data, $is_frontend, $is_cron );
600
 
601
  $mail_for_this_user = false;
602
  if( $is_cron ){
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.17.5.1
7
  Author: codection
8
  Author URI: https://codection.com
9
  License: GPL2
@@ -11,7 +11,6 @@ License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
  Text Domain: import-users-from-csv-with-meta
12
  Domain Path: /languages
13
  */
14
-
15
  if ( ! defined( 'ABSPATH' ) )
16
  exit;
17
 
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.17.5.2
7
  Author: codection
8
  Author URI: https://codection.com
9
  License: GPL2
11
  Text Domain: import-users-from-csv-with-meta
12
  Domain Path: /languages
13
  */
 
14
  if ( ! defined( 'ABSPATH' ) )
15
  exit;
16
 
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.7.1
7
- Stable tag: 1.17.5.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -103,6 +103,9 @@ Plugin will automatically detect:
103
 
104
  == Changelog ==
105
 
 
 
 
106
  = 1.17.5.1 =
107
  * New action class introduced to make easier to use options into the plugin
108
  * Path to file in homepage tab, now it is saved to prevent to rewrite it in every 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.7.1
7
+ Stable tag: 1.17.5.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
103
 
104
  == Changelog ==
105
 
106
+ = 1.17.5.2 =
107
+ * New hooks into shortcode form to enable include actions from there
108
+
109
  = 1.17.5.1 =
110
  * New action class introduced to make easier to use options into the plugin
111
  * Path to file in homepage tab, now it is saved to prevent to rewrite it in every import