Import users from CSV with meta - Version 1.19.2.3

Version Description

  • Improved the WooCommerce addon when working with force reset new password
Download this release

Release Info

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

Code changes from version 1.19.2.2 to 1.19.2.3

addons/woocommerce.php CHANGED
@@ -124,15 +124,16 @@ class ACUI_WooCommerce{
124
  }
125
 
126
  function force_reset_password_edit_profile_url(){
127
- return wc_get_page_permalink( 'myaccount' );
128
  }
129
 
130
  function force_reset_password_redirect_condition( $condition ){
131
- return ( function_exists( 'is_account_page' ) ) ? is_account_page() : $condition;
132
- }
 
133
 
134
  function force_reset_password_notice(){
135
- if ( get_user_meta( get_current_user_id(), 'acui_force_reset_password', true ) ) {
136
  wc_add_notice( apply_filters( 'acui_force_reset_password_message', __( 'Please change your password', 'import-users-from-csv-with-meta' ) ), 'error' );
137
  }
138
  }
124
  }
125
 
126
  function force_reset_password_edit_profile_url(){
127
+ return wc_customer_edit_account_url() . '#password_current';
128
  }
129
 
130
  function force_reset_password_redirect_condition( $condition ){
131
+ global $wp;
132
+ return home_url( $wp->request ) . "/" == wc_customer_edit_account_url();
133
+ }
134
 
135
  function force_reset_password_notice(){
136
+ if ( get_user_meta( get_current_user_id(), 'acui_force_reset_password', true ) && !wc_has_notice( apply_filters( 'acui_force_reset_password_message', __( 'Please change your password', 'import-users-from-csv-with-meta' ) ), 'error' ) ) {
137
  wc_add_notice( apply_filters( 'acui_force_reset_password_message', __( 'Please change your password', 'import-users-from-csv-with-meta' ) ), 'error' );
138
  }
139
  }
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.19.2.2
7
  Author: codection
8
  Author URI: https://codection.com
9
  License: GPL2
@@ -11,11 +11,10 @@ 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
 
18
- define( 'ACUI_VERSION', '1.19.2.2' );
19
 
20
  class ImportExportUsersCustomers{
21
  var $file;
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.19.2.3
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
 
17
+ define( 'ACUI_VERSION', '1.19.2.3' );
18
 
19
  class ImportExportUsersCustomers{
20
  var $file;
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.9.3
7
- Stable tag: 1.19.2.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -107,6 +107,9 @@ Plugin will automatically detect:
107
 
108
  == Changelog ==
109
 
 
 
 
110
  = 1.19.2.2 =
111
  * Fixed an issue in the export function when using the BuddyPress addon and not all columns are exported.
112
 
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.9.3
7
+ Stable tag: 1.19.2.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
107
 
108
  == Changelog ==
109
 
110
+ = 1.19.2.3 =
111
+ * Improved the WooCommerce addon when working with force reset new password
112
+
113
  = 1.19.2.2 =
114
  * Fixed an issue in the export function when using the BuddyPress addon and not all columns are exported.
115