'19835', 'slug' => '3d-image-gallery', 'type' => 'plugin', 'public_key' => 'pk_b2e7f3ea20771578177abd884c97d', 'is_premium' => false, 'premium_suffix' => 'Pro', 'has_premium_version' => true, 'has_addons' => false, 'has_paid_plans' => true, 'trial' => array( 'days' => 7, 'is_require_payment' => false, ), 'menu' => array( 'slug' => '3d-image-gallery-dashboard', 'first-path' => 'tools.php?page=3d-image-gallery-dashboard#/welcome', 'support' => false, 'parent' => array( 'slug' => 'tools.php', ), ), ); $ig_fs = ( BIGB_HAS_PRO ? fs_dynamic_init( $ig_Config ) : fs_lite_dynamic_init( $ig_Config ) ); } return $ig_fs; } // Init Freemius. ig_fs(); // Signal that SDK was initiated. do_action( 'ig_fs_loaded' ); } function ig_IsPremium() { return ( BIGB_HAS_PRO ? ig_fs()->can_use_premium_code() : false ); } // ... Your plugin's main file logic ... class BIGBImageGallery { function __construct() { add_action( 'init', [$this, 'onInit'] ); add_action( 'enqueue_block_editor_assets', [$this, 'igbEnqueueBlockEditorAssets'] ); } function onInit() { register_block_type( __DIR__ . '/build' ); } function igbEnqueueBlockEditorAssets() { wp_add_inline_script( 'bigb-image-gallery-editor-script', 'const igbpipecheck = ' . wp_json_encode( ig_IsPremium() ) . ';', 'before' ); } } new BIGBImageGallery(); } require_once BIGB_DIR_PATH . '/inc/adminMenu.php'; require_once BIGB_DIR_PATH . '/inc/upgradePage.php';