PluginProbe
Tiered Pricing Table for WooCommerce / 2.0.2
Tiered Pricing Table for WooCommerce v2.0.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
tier-pricing-table / tier-pricing-table.php

tier-pricing-table.php in Tiered Pricing Table for WooCommerce 2.0.2, at tier-pricing-table.php

40 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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.0.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 *
18 */
19
20 // If this file is called directly, abort.
21 if ( ! defined( 'WPINC' ) ) {
22 die;
23 }
24
25 require_once 'licence-init.php';
26
27 call_user_func( function () {
28
29 require_once plugin_dir_path( __FILE__ ) . 'vendor/autoload.php';
30
31 $main = new TierPricingTablePlugin( __FILE__ );
32
33 register_activation_hook( __FILE__, [ $main, 'activate' ] );
34
35 register_deactivation_hook( __FILE__, [ $main, 'deactivate' ] );
36
37 tpt_fs()->add_action( 'after_uninstall', [ TierPricingTablePlugin::class, 'uninstall' ] );
38
39 $main->run();
40 } );