| @@ -33,15 +33,10 @@ | ||
| 33 | 33 | * @var Freemius |
| 34 | 34 | */ |
| 35 | 35 | private $licence; |
| 36 | 36 | |
| 37 | - /** | |
| 38 | - * @var Integrations\Integrations | |
| 39 | - */ | |
| 40 | - private $integrations; | |
| 37 | + const VERSION = '2.2.2'; | |
| 41 | 38 | |
| 42 | - const VERSION = '2.3.3'; | |
| 43 | - | |
| 44 | 39 | const DB_VERSION = '2.0'; |
| 45 | 40 | |
| 46 | 41 | /** |
| 47 | 42 | * TierPricingTablePlugin constructor. |
| @@ -53,10 +48,8 @@ | ||
| 53 | 48 | $this->fileManager = new FileManager( $mainFile, 'tier-pricing-table' ); |
| 54 | 49 | $this->settings = new Settings( $this->fileManager ); |
| 55 | 50 | $this->notifier = new AdminNotifier(); |
| 56 | 51 | |
| 57 | - $this->integrations = new Integrations\Integrations(); | |
| 58 | - | |
| 59 | 52 | add_action( 'init', [ $this, 'loadTextDomain' ], - 999 ); |
| 60 | 53 | add_action( 'admin_init', [ $this, 'checkRequirePlugins' ] ); |
| 61 | 54 | |
| 62 | 55 | add_filter( 'plugin_action_links_' . plugin_basename( $this->fileManager->getMainFile() ), |
| @@ -80,13 +73,8 @@ | ||
| 80 | 73 | |
| 81 | 74 | $actions[] = '<a href="' . $this->licence->getContactUsPageUrl() . '"><b style="color: green">' . __( 'Contact Us', |
| 82 | 75 | 'tier-pricing-table' ) . '</b></a>'; |
| 83 | 76 | |
| 84 | - if ( !tpt_fs()->is_premium() ) { | |
| 85 | - $actions[] = '<a href="' . tpt_fs()->get_upgrade_url() . '"><b style="color: red">' . __( 'GO PREMIUM', | |
| 86 | - 'tier-pricing-table' ) . '</b></a>'; | |
| 87 | - } | |
| 88 | - | |
| 89 | 77 | return $actions; |
| 90 | 78 | } |
| 91 | 79 | |
| 92 | 80 | /** |
| @@ -179,9 +167,8 @@ | ||
| 179 | 167 | delete_option( Settings::SETTINGS_PREFIX . 'lowest_prefix' ); |
| 180 | 168 | delete_option( Settings::SETTINGS_PREFIX . 'head_discount_text' ); |
| 181 | 169 | delete_option( Settings::SETTINGS_PREFIX . 'clickable_table_rows' ); |
| 182 | 170 | delete_option( Settings::SETTINGS_PREFIX . 'show_total_price' ); |
| 183 | - delete_option( Settings::SETTINGS_PREFIX . 'tiered_price_at_product_page' ); | |
| 184 | 171 | |
| 185 | 172 | delete_option( Updater::DB_OPTION ); |
| 186 | 173 | } |
| 187 | 174 | |