| @@ -4,24 +4,28 @@ | ||
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | 6 | * |
| 7 | 7 | * Plugin Name: WooCommerce Tiered Price Table |
| 8 | - * Description: Allow set price for certain count of price. Shows pricing table. Supports displaying table in tooltip | |
| 9 | - * Version: 1.1 | |
| 8 | + * Description: Allow set price for certain quantity of product. Shows pricing table. Supports displaying pricing table in tooltip | |
| 9 | + * Version: 2.2.2 | |
| 10 | 10 | * Author: bycrik |
| 11 | 11 | * License: GPLv2 or later |
| 12 | 12 | * License URI: http://www.gnu.org/licenses/gpl-2.0.txt |
| 13 | 13 | * Text Domain: tier-pricing-table |
| 14 | - * Domain Path: /languages | |
| 14 | + * Domain Path: /languages/ | |
| 15 | 15 | * |
| 16 | 16 | * WC requires at least: 3.0 |
| 17 | + * WC tested up to: 3.6.2 | |
| 18 | + * | |
| 17 | 19 | */ |
| 18 | 20 | |
| 19 | 21 | // If this file is called directly, abort. |
| 20 | 22 | if ( ! defined( 'WPINC' ) ) { |
| 21 | - die; | |
| 23 | + die; | |
| 22 | 24 | } |
| 23 | 25 | |
| 26 | +require_once 'licence-init.php'; | |
| 27 | + | |
| 24 | 28 | call_user_func( function () { |
| 25 | 29 | |
| 26 | 30 | require_once plugin_dir_path( __FILE__ ) . 'vendor/autoload.php'; |
| 27 | 31 | |
| @@ -30,8 +34,8 @@ | ||
| 30 | 34 | register_activation_hook( __FILE__, [ $main, 'activate' ] ); |
| 31 | 35 | |
| 32 | 36 | register_deactivation_hook( __FILE__, [ $main, 'deactivate' ] ); |
| 33 | 37 | |
| 34 | - register_uninstall_hook( __FILE__, [ TierPricingTablePlugin::class, 'uninstall' ] ); | |
| 38 | + tpt_fs()->add_action( 'after_uninstall', [ TierPricingTablePlugin::class, 'uninstall' ] ); | |
| 35 | 39 | |
| 36 | 40 | $main->run(); |
| 37 | 41 | } ); |