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

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

- Page: https://pluginprobe.com/plugins/tier-pricing-table/2.1.1/code/licence-init.php
- Raw: https://pluginprobe.com/plugins/tier-pricing-table/2.1.1/raw/licence-init.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/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';
            try {
                $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,
                    'menu'           => array(
                    'first-path' => 'admin.php?page=wc-settings&tab=tiered_pricing_table_settings',
                    'contact'    => false,
                    'support'    => false,
                ),
                    'is_live'        => true,
                ) );
            } catch ( Freemius_Exception $e ) {
                log( $e->getMessage() );
            }
        }
        
        return $tpt_fs;
    }
    
    // Init Freemius.
    tpt_fs();
    // Signal that SDK was initiated.
    do_action( 'tpt_fs_loaded' );
}

```
