PluginProbe
Tiered Pricing Table for WooCommerce / 2.2.2
Tiered Pricing Table for WooCommerce v2.2.2
7.1.7 7.1.5 7.1.4 7.1.1 6.5.0 6.4.0 6.1.0 trunk 1.0 1.1 2.0 2.0.1 2.0.2 2.1 2.1.1 2.1.2 2.2.0 2.2.1 2.2.2 2.2.3 2.3.0 2.3.1 2.3.2 2.3.3 2.3.4 All 90 releases
← All changes | src/TierPricingTablePlugin.php +6 -8 2.12.2.2 View file →
@@ -33,9 +33,9 @@
33 33 * @var Freemius
34 34 */
35 35 private $licence;
36 36
37 - const VERSION = '2.1';
37 + const VERSION = '2.2.2';
38 38
39 39 const DB_VERSION = '2.0';
40 40
41 41 /**
@@ -53,12 +53,8 @@
53 53 add_action( 'admin_init', [ $this, 'checkRequirePlugins' ] );
54 54
55 55 add_filter( 'plugin_action_links_' . plugin_basename( $this->fileManager->getMainFile() ),
56 56 [ $this, 'addPluginAction' ], 10, 4 );
57 -
58 - add_action('init', function(){
59 -
60 - });
61 57 }
62 58
63 59 /**
64 60 * Add setting to plugin actions at plugins list
@@ -69,9 +65,9 @@
69 65 */
70 66 public function addPluginAction( $actions ) {
71 67 $actions[] = '<a href="' . $this->settings->getLink() . '">' . __( 'Settings', 'tier-pricing-table' ) . '</a>';
72 68
73 - if ( ! tpt_fs()->is_anonymous() ) {
69 + if ( ! tpt_fs()->is_anonymous() && tpt_fs()->is_installed_on_site() ) {
74 70 $actions[] = '<a href="' . $this->licence->getAccountPageUrl() . '"><b style="color: green">' . __( 'Account',
75 71 'tier-pricing-table' ) . '</b></a>';
76 72 }
77 73
@@ -90,9 +86,8 @@
90 86
91 87 if ( $valid && ! $updater->checkForUpdates() ) {
92 88
93 89 if ( is_admin() ) {
94 -
95 90 new Admin( $this->fileManager, $this->licence, $this->settings );
96 91 } else {
97 92 new Frontend( $this->fileManager, $this->licence, $this->settings );
98 93 }
@@ -163,8 +158,9 @@
163 158 delete_option( Settings::SETTINGS_PREFIX . 'table_title' );
164 159 delete_option( Settings::SETTINGS_PREFIX . 'table_css_class' );
165 160 delete_option( Settings::SETTINGS_PREFIX . 'tooltip_size' );
166 161
162 + // Premium
167 163 delete_option( Settings::SETTINGS_PREFIX . 'show_discount_in_cart' );
168 164 delete_option( Settings::SETTINGS_PREFIX . 'tiered_price_at_catalog' );
169 165 delete_option( Settings::SETTINGS_PREFIX . 'show_discount_column' );
170 166 delete_option( Settings::SETTINGS_PREFIX . 'tiered_price_at_catalog_type' );
@@ -169,10 +165,12 @@
169 165 delete_option( Settings::SETTINGS_PREFIX . 'show_discount_column' );
170 166 delete_option( Settings::SETTINGS_PREFIX . 'tiered_price_at_catalog_type' );
171 167 delete_option( Settings::SETTINGS_PREFIX . 'lowest_prefix' );
172 168 delete_option( Settings::SETTINGS_PREFIX . 'head_discount_text' );
169 + delete_option( Settings::SETTINGS_PREFIX . 'clickable_table_rows' );
170 + delete_option( Settings::SETTINGS_PREFIX . 'show_total_price' );
173 171
174 - delete_option(Updater::DB_OPTION);
172 + delete_option( Updater::DB_OPTION );
175 173 }
176 174
177 175 /**
178 176 * Plugin activation