| Server IP : 121.121.20.254 / Your IP : 216.73.216.202 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/forum/wp-content/plugins/copy-the-code/classes/ |
Upload File : |
<?php
if ( !function_exists( 'ctc_fs' ) ) {
// Create a helper function for easy SDK access.
function ctc_fs() {
global $ctc_fs;
if ( !isset( $ctc_fs ) ) {
// Include Freemius SDK from Composer vendor directory.
$freemius_sdk_path = dirname( dirname( __FILE__ ) ) . '/vendor/freemius/wordpress-sdk/start.php';
if ( !file_exists( $freemius_sdk_path ) ) {
wp_die( 'Freemius SDK not found. Please run: composer install' );
}
require_once $freemius_sdk_path;
$ctc_fs = fs_dynamic_init( [
'id' => '2780',
'slug' => 'copy-the-code',
'type' => 'plugin',
'public_key' => 'pk_15a174f8c30f506a9a35ccbf0fa76',
'is_premium' => false,
'premium_suffix' => 'Premium',
'has_addons' => false,
'has_paid_plans' => true,
'has_affiliation' => 'selected',
'menu' => [
'slug' => 'copy-the-code',
'override_exact' => true,
'first-path' => 'options-general.php?page=copy-the-code',
'contact' => true,
'support' => true,
'affiliation' => false,
'parent' => [
'slug' => 'options-general.php',
],
],
'is_live' => true,
] );
}
return $ctc_fs;
}
// Init Freemius.
ctc_fs();
// Signal that SDK was initiated.
do_action( 'ctc_fs_loaded' );
function ctc_fs_settings_url() {
return admin_url( 'options-general.php?page=copy-the-code' );
}
ctc_fs()->add_filter( 'connect_url', 'ctc_fs_settings_url' );
ctc_fs()->add_filter( 'after_skip_url', 'ctc_fs_settings_url' );
ctc_fs()->add_filter( 'after_connect_url', 'ctc_fs_settings_url' );
ctc_fs()->add_filter( 'after_pending_connect_url', 'ctc_fs_settings_url' );
}