| 1 |
<?php |
| 2 |
|
| 3 |
use TierPricingTable\TierPricingTablePlugin; |
| 4 |
|
| 5 |
/** |
| 6 |
* |
| 7 |
* Plugin Name: WooCommerce Tiered Price Table |
| 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 |
* Author: bycrik |
| 11 |
* License: GPLv2 or later |
| 12 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt |
| 13 |
* Text Domain: tier-pricing-table |
| 14 |
* Domain Path: /languages/ |
| 15 |
* |
| 16 |
* WC requires at least: 3.0 |
| 17 |
* WC tested up to: 3.6.2 |
| 18 |
* |
| 19 |
*/ |
| 20 |
|
| 21 |
// If this file is called directly, abort. |
| 22 |
if ( ! defined( 'WPINC' ) ) { |
| 23 |
die; |
| 24 |
} |
| 25 |
|
| 26 |
require_once 'licence-init.php'; |
| 27 |
|
| 28 |
call_user_func( function () { |
| 29 |
|
| 30 |
require_once plugin_dir_path( __FILE__ ) . 'vendor/autoload.php'; |
| 31 |
|
| 32 |
$main = new TierPricingTablePlugin( __FILE__ ); |
| 33 |
|
| 34 |
register_activation_hook( __FILE__, [ $main, 'activate' ] ); |
| 35 |
|
| 36 |
register_deactivation_hook( __FILE__, [ $main, 'deactivate' ] ); |
| 37 |
|
| 38 |
tpt_fs()->add_action( 'after_uninstall', [ TierPricingTablePlugin::class, 'uninstall' ] ); |
| 39 |
|
| 40 |
$main->run(); |
| 41 |
} ); |