# copy-the-code/3.5.2/classes/init.php

Copy Anything to Clipboard for WordPress – Copy Button, Copy Text &amp; Copy Code, version 3.5.2. 54 lines.

- Page: https://pluginprobe.com/plugins/copy-the-code/3.5.2/code/classes/init.php
- Raw: https://pluginprobe.com/plugins/copy-the-code/3.5.2/raw/classes/init.php
- Modified: 2022-12-25T19:14:00+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/copy-the-code/3.5.2/code/classes/init.php#L10-L20`.

```php
<?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.
            require_once dirname( __FILE__ ) . '/freemius/start.php';
            $ctc_fs = fs_dynamic_init( array(
                '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'            => array(
                'slug'           => 'copy-the-code',
                'override_exact' => true,
                'first-path'     => 'options-general.php?page=copy-the-code',
                'contact'        => true,
                'support'        => true,
                'affiliation'    => false,
                'parent'         => array(
                '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' );
}

```
