Plugin Directory

Changeset 2421318


Ignore:
Timestamp:
11/19/2020 07:42:11 AM (5 years ago)
Author:
botpenguinbot
Message:

freemius integrated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • botpenguinbot/trunk/botpenguin.php

    r2393676 r2421318  
    1010 * License: GPL2
    1111 */
     12
     13if ( ! function_exists( 'htt_fs' ) ) {
     14// Create a helper function for easy SDK access.
     15    function htt_fs() {
     16        global $htt_fs;
     17
     18        if ( ! isset( $htt_fs ) ) {
     19// Include Freemius SDK.
     20            require_once dirname(__FILE__) . '/freemius/start.php';
     21
     22            $htt_fs = fs_dynamic_init( array(
     23                'id' => '7242',
     24                'slug' => 'httpswordpressorgpluginsbotpenguinbot',
     25                'type' => 'plugin',
     26                'public_key' => 'pk_bd991ee277efdde20b0dda27ff512',
     27                'is_premium' => false,
     28                'has_addons' => false,
     29                'has_paid_plans' => false,
     30                'menu' => array(
     31                    'slug' => 'httpswordpressorgpluginsbotpenguinbot',
     32                    'account' => false,
     33                    'support' => false,
     34                    'network' => true,
     35                ),
     36            ) );
     37        }
     38
     39        return $htt_fs;
     40    }
     41
     42// Init Freemius.
     43    htt_fs();
     44// Signal that SDK was initiated.
     45    do_action( 'htt_fs_loaded' );
     46}
    1247
    1348add_action('wp_head', 'BOTPENGUIN_function');
Note: See TracChangeset for help on using the changeset viewer.