# tier-pricing-table/2.3.1/licence-init.php

Tiered Pricing Table for WooCommerce, version 2.3.1. 46 lines.

- Page: https://pluginprobe.com/plugins/tier-pricing-table/2.3.1/code/licence-init.php
- Raw: https://pluginprobe.com/plugins/tier-pricing-table/2.3.1/raw/licence-init.php
- Modified: 2019-04-04T19:01:34+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.3.1/code/licence-init.php#L10-L20`.

```php
<?php

if ( !defined( 'ABSPATH' ) ) {
    exit;
}

if ( !function_exists( 'tpt_fs' ) ) {
    // Create a helper function for easy SDK access.
    function tpt_fs()
    {
        global  $tpt_fs ;
        
        if ( !isset( $tpt_fs ) ) {
            // Include Freemius SDK.
            require_once dirname( __FILE__ ) . '/freemius/start.php';
            $tpt_fs = fs_dynamic_init( array(
                'id'             => '3433',
                'slug'           => 'tier-pricing-table',
                'type'           => 'plugin',
                'public_key'     => 'pk_d9f80d20e4c964001b87a062cd2b7',
                'is_premium'     => false,
                'premium_suffix' => 'Premium',
                'has_addons'     => false,
                'has_paid_plans' => true,
                'trial'          => array(
                'days'               => 7,
                'is_require_payment' => true,
            ),
                'menu'           => array(
                'first-path' => 'admin.php?page=wc-settings&tab=tiered_pricing_table_settings',
                'contact'    => false,
                'support'    => false,
            ),
                'is_live'        => true,
            ) );
        }
        
        return $tpt_fs;
    }
    
    // Init Freemius.
    tpt_fs();
    // Signal that SDK was initiated.
    do_action( 'tpt_fs_loaded' );
}

```
