Import Export WordPress Users and WooCommerce Customers - Version 1.0.6

Version Description

  • Fixed Conflict with Premium Version
Download this release

Release Info

Developer xadapter
Plugin Icon 128x128 Import Export WordPress Users and WooCommerce Customers
Version 1.0.6
Comparing to
See all releases

Code changes from version 1.0.5 to 1.0.6

Files changed (2) hide show
  1. customer-import-export.php +25 -4
  2. readme.txt +7 -1
customer-import-export.php CHANGED
@@ -6,7 +6,7 @@
6
  Description: Export and Import User/Customers details From and To your WordPress/WooCommerce.
7
  Author: XAdapter
8
  Author URI: http://www.xadapter.com/
9
- Version: 1.0.5
10
  Text Domain: wf_customer_import_export
11
  */
12
 
@@ -16,9 +16,27 @@ if (!defined('ABSPATH') || !is_admin()) {
16
  return;
17
  }
18
 
19
- define("WF_CUSTOMER_IMP_EXP_ID", "wf_customer_imp_exp");
20
- define("HF_WORDPRESS_CUSTOMER_IM_EX", "hf_wordpress_customer_im_ex");
 
 
 
 
 
 
 
 
 
21
 
 
 
 
 
 
 
 
 
 
22
 
23
  if (!class_exists('WF_Customer_Import_Export_CSV')) :
24
 
@@ -32,7 +50,10 @@ if (!class_exists('WF_Customer_Import_Export_CSV')) :
32
  * Constructor
33
  */
34
  public function __construct() {
35
- define('WF_CustomerImpExpCsv_FILE', __FILE__);
 
 
 
36
 
37
  add_filter('woocommerce_screen_ids', array($this, 'woocommerce_screen_ids'));
38
  add_filter('plugin_action_links_' . plugin_basename(__FILE__), array($this, 'wf_plugin_action_links'));
6
  Description: Export and Import User/Customers details From and To your WordPress/WooCommerce.
7
  Author: XAdapter
8
  Author URI: http://www.xadapter.com/
9
+ Version: 1.0.6
10
  Text Domain: wf_customer_import_export
11
  */
12
 
16
  return;
17
  }
18
 
19
+ /**
20
+ * Function to check whether Premium version of User Import Export plugin is installed or not
21
+ */
22
+ function wf_wordpress_user_import_export_premium_check(){
23
+ if ( is_plugin_active('customer-import-export-for-woocommerce/customer-import-export.php') ){
24
+ deactivate_plugins( basename( __FILE__ ) );
25
+ wp_die(__("You already have the Premium version installed. For any issues, kindly contact our <a target='_blank' href='https://www.xadapter.com/online-support/'>support</a>.", "wf_customer_import_export"), "", array('back_link' => 1 ));
26
+ }
27
+ }
28
+ register_activation_hook( __FILE__, 'wf_wordpress_user_import_export_premium_check' );
29
+
30
 
31
+ if( !defined('WF_CUSTOMER_IMP_EXP_ID') )
32
+ {
33
+ define("WF_CUSTOMER_IMP_EXP_ID", "wf_customer_imp_exp");
34
+ }
35
+
36
+ if( !defined('HF_WORDPRESS_CUSTOMER_IM_EX') )
37
+ {
38
+ define("HF_WORDPRESS_CUSTOMER_IM_EX", "hf_wordpress_customer_im_ex");
39
+ }
40
 
41
  if (!class_exists('WF_Customer_Import_Export_CSV')) :
42
 
50
  * Constructor
51
  */
52
  public function __construct() {
53
+ if( !defined('WF_CustomerImpExpCsv_FILE') )
54
+ {
55
+ define('WF_CustomerImpExpCsv_FILE', __FILE__);
56
+ }
57
 
58
  add_filter('woocommerce_screen_ids', array($this, 'woocommerce_screen_ids'));
59
  add_filter('plugin_action_links_' . plugin_basename(__FILE__), array($this, 'wf_plugin_action_links'));
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: xadapter, niwf, mujeebur
3
  Tags: CSV, Export, Import, WooCommerce Customers, Wordpress Users
4
  Requires at least: 3.0.1
5
  Tested up to: 4.8
6
- Stable tag: 1.0.5
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -78,6 +78,9 @@ Yes. You can import or export multiple user roles along with other basic user de
78
 
79
  == Changelog ==
80
 
 
 
 
81
  = 1.0.5 =
82
  * Fixed PHP 7.0 Compatibility Issue and warning WC_Logger::log was called incorrectly. WC_Logger::log was called with an invalid level 1
83
 
@@ -95,6 +98,9 @@ Yes. You can import or export multiple user roles along with other basic user de
95
 
96
  == Upgrade Notice ==
97
 
 
 
 
98
  = 1.0.5 =
99
  * Fixed PHP 7.0 Compatibility Issue and Bug Fix
100
 
3
  Tags: CSV, Export, Import, WooCommerce Customers, Wordpress Users
4
  Requires at least: 3.0.1
5
  Tested up to: 4.8
6
+ Stable tag: 1.0.6
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
78
 
79
  == Changelog ==
80
 
81
+ = 1.0.6 =
82
+ * Fixed Conflict with Premium Version
83
+
84
  = 1.0.5 =
85
  * Fixed PHP 7.0 Compatibility Issue and warning WC_Logger::log was called incorrectly. WC_Logger::log was called with an invalid level 1
86
 
98
 
99
  == Upgrade Notice ==
100
 
101
+ = 1.0.6 =
102
+ * Fixed Conflict with Premium Version
103
+
104
  = 1.0.5 =
105
  * Fixed PHP 7.0 Compatibility Issue and Bug Fix
106