# tier-pricing-table/2.1.1/tier-pricing-table.php

Tiered Pricing Table for WooCommerce, version 2.1.1. 40 lines.

- Page: https://pluginprobe.com/plugins/tier-pricing-table/2.1.1/code/tier-pricing-table.php
- Raw: https://pluginprobe.com/plugins/tier-pricing-table/2.1.1/raw/tier-pricing-table.php
- Modified: 2019-03-26T15:40:10+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/tier-pricing-table/2.1.1/code/tier-pricing-table.php#L10-L20`.

```php
<?php

use TierPricingTable\TierPricingTablePlugin;

/**
 *
 * Plugin Name:       WooCommerce Tiered Price Table
 * Description:       Allow set price for certain quantity of product. Shows pricing table. Supports displaying pricing table in tooltip
 * Version:           2.1.1
 * Author:            bycrik
 * License:           GPLv2 or later
 * License URI:       http://www.gnu.org/licenses/gpl-2.0.txt
 * Text Domain:       tier-pricing-table
 * Domain Path:       /languages/
 *
 * WC requires at least: 3.0
 *
 */

// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
	die;
}

require_once 'licence-init.php';

call_user_func( function () {

	require_once plugin_dir_path( __FILE__ ) . 'vendor/autoload.php';

	$main = new TierPricingTablePlugin( __FILE__ );

	register_activation_hook( __FILE__, [ $main, 'activate' ] );

	register_deactivation_hook( __FILE__, [ $main, 'deactivate' ] );

	tpt_fs()->add_action( 'after_uninstall', [ TierPricingTablePlugin::class, 'uninstall' ] );

	$main->run();
} );
```
