WooCommerce Checkout Field Editor (Manager) Pro - Version 1.4.8

Version Description

  • Added backward compatibility with PHP 5.6.
Download this release

Release Info

Developer ThemeHigh
Plugin Icon 128x128 WooCommerce Checkout Field Editor (Manager) Pro
Version 1.4.8
Comparing to
See all releases

Code changes from version 1.4.7 to 1.4.8

admin/class-thwcfd-admin-settings-pro.php CHANGED
@@ -64,7 +64,7 @@ class THWCFD_Admin_Settings_Pro extends THWCFD_Admin_Settings{
64
  <li>Create your own custom classes for styling the field</li>
65
  </ul>
66
  <p>
67
- <a class="button big-button" target="_blank" href="https://www.themehigh.com/product/woocommerce-checkout-field-editor-pro/?utm_source=free&utm_medium=banner&utm_campaign=upgrade_button">Upgrade to Premium Version</a>
68
  <a class="button big-button" target="_blank" href="https://flydemos.com/wcfe/?utm_source=free&utm_medium=banner&utm_campaign=trydemo" style="margin-left: 20px">Try Demo</a>
69
  </p>
70
  </div>
64
  <li>Create your own custom classes for styling the field</li>
65
  </ul>
66
  <p>
67
+ <a class="button big-button" target="_blank" href="https://www.themehigh.com/product/woocommerce-checkout-field-editor-pro/?utm_source=free&utm_medium=premium_tab&utm_campaign=wcfe_upgrade_link">Upgrade to Premium Version</a>
68
  <a class="button big-button" target="_blank" href="https://flydemos.com/wcfe/?utm_source=free&utm_medium=banner&utm_campaign=trydemo" style="margin-left: 20px">Try Demo</a>
69
  </p>
70
  </div>
admin/class-thwcfd-admin.php CHANGED
@@ -16,10 +16,6 @@ class THWCFD_Admin {
16
  private $plugin_name;
17
  private $version;
18
 
19
- private const SHOW_REVIEW_REQUEST_NOTICE_AFTER = 10 * DAY_IN_SECONDS;
20
- private const DISMISSED_REVIEW_REQUEST_NOTICE_LIFESPAN = 1 * YEAR_IN_SECONDS;
21
- private const SKIP_REVIEW_REQUEST_NOTICE_LIFESPAN = 1 * DAY_IN_SECONDS;
22
-
23
  /**
24
  * Initialize the class and set its properties.
25
  *
@@ -78,7 +74,7 @@ class THWCFD_Admin {
78
  public function plugin_action_links($links) {
79
  $settings_link = '<a href="'.admin_url('admin.php?page=checkout_form_designer').'">'. __('Settings', 'woo-checkout-field-editor-pro') .'</a>';
80
  array_unshift($links, $settings_link);
81
- $pro_link = '<a style="color:green; font-weight:bold" target="_blank" href="https://www.themehigh.com/product/woocommerce-checkout-field-editor-pro/?utm_source=wordpress&utm_medium=referral&utm_content=tracking">'. __('Get Pro', 'woo-checkout-field-editor-pro') .'</a>';
82
  array_push($links,$pro_link);
83
  return $links;
84
  }
@@ -102,7 +98,7 @@ class THWCFD_Admin {
102
  $now = time();
103
  $diff_seconds = $now - $thwcfd_since;
104
 
105
- if($diff_seconds > apply_filters('thwcfd_show_review_request_notice_after', self::SHOW_REVIEW_REQUEST_NOTICE_AFTER)){
106
  $this->render_review_request_notice();
107
  }
108
  }
@@ -158,14 +154,14 @@ class THWCFD_Admin {
158
  if(! check_ajax_referer( 'thwcfd_review_request_notice', 'security' )){
159
  die();
160
  }
161
- set_transient('thwcfd_review_request_notice_dismissed', true, apply_filters('thwcfd_dismissed_review_request_notice_lifespan', self::DISMISSED_REVIEW_REQUEST_NOTICE_LIFESPAN));
162
  }
163
 
164
  public function skip_thwcfd_review_request_notice(){
165
  if(! check_ajax_referer( 'thwcfd_review_request_notice', 'security' )){
166
  die();
167
  }
168
- set_transient('thwcfd_skip_review_request_notice', true, apply_filters('thwcfd_skip_review_request_notice_lifespan', self::SKIP_REVIEW_REQUEST_NOTICE_LIFESPAN));
169
  }
170
 
171
  }
16
  private $plugin_name;
17
  private $version;
18
 
 
 
 
 
19
  /**
20
  * Initialize the class and set its properties.
21
  *
74
  public function plugin_action_links($links) {
75
  $settings_link = '<a href="'.admin_url('admin.php?page=checkout_form_designer').'">'. __('Settings', 'woo-checkout-field-editor-pro') .'</a>';
76
  array_unshift($links, $settings_link);
77
+ $pro_link = '<a style="color:green; font-weight:bold" target="_blank" href="https://www.themehigh.com/product/woocommerce-checkout-field-editor-pro/?utm_source=free&utm_medium=plugin_action_link&utm_campaign=wcfe_upgrade_link">'. __('Get Pro', 'woo-checkout-field-editor-pro') .'</a>';
78
  array_push($links,$pro_link);
79
  return $links;
80
  }
98
  $now = time();
99
  $diff_seconds = $now - $thwcfd_since;
100
 
101
+ if($diff_seconds > apply_filters('thwcfd_show_review_request_notice_after', 10 * DAY_IN_SECONDS)){
102
  $this->render_review_request_notice();
103
  }
104
  }
154
  if(! check_ajax_referer( 'thwcfd_review_request_notice', 'security' )){
155
  die();
156
  }
157
+ set_transient('thwcfd_review_request_notice_dismissed', true, apply_filters('thwcfd_dismissed_review_request_notice_lifespan', 1 * YEAR_IN_SECONDS));
158
  }
159
 
160
  public function skip_thwcfd_review_request_notice(){
161
  if(! check_ajax_referer( 'thwcfd_review_request_notice', 'security' )){
162
  die();
163
  }
164
+ set_transient('thwcfd_skip_review_request_notice', true, apply_filters('thwcfd_skip_review_request_notice_lifespan', 1 * DAY_IN_SECONDS));
165
  }
166
 
167
  }
checkout-form-designer.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Checkout Field Editor for WooCommerce
4
  * Description: Customize WooCommerce checkout fields(Add, Edit, Delete and re-arrange fields).
5
  * Author: ThemeHigh
6
- * Version: 1.4.7
7
  * Author URI: https://www.themehigh.com
8
  * Plugin URI: https://www.themehigh.com
9
  * Text Domain: woo-checkout-field-editor-pro
@@ -25,7 +25,7 @@ if (!function_exists('is_woocommerce_active')){
25
  }
26
 
27
  if(is_woocommerce_active()) {
28
- define('THWCFD_VERSION', '1.4.7');
29
  !defined('THWCFD_BASE_NAME') && define('THWCFD_BASE_NAME', plugin_basename( __FILE__ ));
30
  !defined('THWCFD_PATH') && define('THWCFD_PATH', plugin_dir_path( __FILE__ ));
31
  !defined('THWCFD_URL') && define('THWCFD_URL', plugins_url( '/', __FILE__ ));
3
  * Plugin Name: Checkout Field Editor for WooCommerce
4
  * Description: Customize WooCommerce checkout fields(Add, Edit, Delete and re-arrange fields).
5
  * Author: ThemeHigh
6
+ * Version: 1.4.8
7
  * Author URI: https://www.themehigh.com
8
  * Plugin URI: https://www.themehigh.com
9
  * Text Domain: woo-checkout-field-editor-pro
25
  }
26
 
27
  if(is_woocommerce_active()) {
28
+ define('THWCFD_VERSION', '1.4.8');
29
  !defined('THWCFD_BASE_NAME') && define('THWCFD_BASE_NAME', plugin_basename( __FILE__ ));
30
  !defined('THWCFD_PATH') && define('THWCFD_PATH', plugin_dir_path( __FILE__ ));
31
  !defined('THWCFD_URL') && define('THWCFD_URL', plugins_url( '/', __FILE__ ));
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: checkout field editor, woocommerce checkout field editor, checkout manager
5
  Requires at least: 4.9
6
  Tested up to: 5.7
7
  Requires PHP: 5.6
8
- Stable tag: 1.4.7
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -207,6 +207,9 @@ Yes. There is a button 'reset to default fields' to go back to the WooCommerce d
207
  8. Save changes.
208
 
209
  == Changelog ==
 
 
 
210
  = 1.4.7 =
211
  * Dismissable review request notice added to the admin screens.
212
  * Added Woocommerce version - 5.2.2 compatibility.
5
  Requires at least: 4.9
6
  Tested up to: 5.7
7
  Requires PHP: 5.6
8
+ Stable tag: 1.4.8
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
207
  8. Save changes.
208
 
209
  == Changelog ==
210
+ = 1.4.8 =
211
+ * Added backward compatibility with PHP 5.6.
212
+
213
  = 1.4.7 =
214
  * Dismissable review request notice added to the admin screens.
215
  * Added Woocommerce version - 5.2.2 compatibility.