Plugin Directory

Changeset 3318669


Ignore:
Timestamp:
06/27/2025 09:51:56 AM (9 months ago)
Author:
telinchi
Message:

Added Freemius SDK integration

Location:
jwelar/trunk
Files:
224 added
1 edited

Legend:

Unmodified
Added
Removed
  • jwelar/trunk/jwelar.php

    r3308568 r3318669  
    1414if ( ! defined('ABSPATH')) exit; // Exit if accessed directly
    1515
     16if ( ! function_exists( 'tjrtajfpfw_fs' ) ) {
     17    // Create a helper function for easy SDK access.
     18    function tjrtajfpfw_fs() {
     19        global $tjrtajfpfw_fs;
     20
     21        if ( ! isset( $tjrtajfpfw_fs ) ) {
     22            // Include Freemius SDK.
     23            require_once dirname( __FILE__ ) . '/vendor/freemius/start.php';
     24            $tjrtajfpfw_fs = fs_dynamic_init( array(
     25                'id'                  => '19601',
     26                'slug'                => 'touchtry-jwelar--real-time-ar-jewelry-fitting-plugin-for-woocom',
     27                'type'                => 'plugin',
     28                'public_key'          => 'pk_2faf7d361465f9271d335f353b113',
     29                'is_premium'          => true,
     30                'is_premium_only'     => true,
     31                'has_addons'          => false,
     32                'has_paid_plans'      => true,
     33                'menu'                => array(
     34                    'support'        => false,
     35                ),
     36            ) );
     37        }
     38
     39        return $tjrtajfpfw_fs;
     40    }
     41
     42    // Init Freemius.
     43    tjrtajfpfw_fs();
     44    // Signal that SDK was initiated.
     45    do_action( 'tjrtajfpfw_fs_loaded' );
     46}
    1647require_once plugin_dir_path(__FILE__) . 'api.php';
    1748
Note: See TracChangeset for help on using the changeset viewer.