-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfreemius.php
40 lines (35 loc) · 983 Bytes
/
freemius.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
/**
* Runs all the Freemius initialization code
*/
if ( ! function_exists( 'foogen_fs' ) ) {
// Create a helper function for easy SDK access.
function foogen_fs() {
global $foogen_fs;
if ( ! isset( $foogen_fs ) ) {
// Include Freemius SDK.
require_once FOOGEN_PATH . '/freemius/start.php';
$foogen_fs = fs_dynamic_init( array(
'id' => '6152',
'slug' => 'fooplugins-generator',
'type' => 'plugin',
'public_key' => 'pk_bfc88433ebe2aa2c7b66bfa24110f',
'is_premium' => true,
'has_addons' => false,
'has_paid_plans' => true,
'menu' => array(
'slug' => 'foogen-settings',
'support' => false,
'parent' => array(
'slug' => 'tools.php',
),
),
) );
}
return $foogen_fs;
}
// Init Freemius.
foogen_fs();
// Signal that SDK was initiated.
do_action( 'foogen_fs_loaded' );
}