-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
freemius.php
39 lines (34 loc) · 972 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
<?php
/**
* Helper function to access Freemius easily.
*
* @return Freemius
* @since 0.7
*/
function bbr_fs()
{
global $bbr_fs;
if (isset($bbr_fs)) {
return $bbr_fs;
}
// Include Freemius SDK.
require trailingslashit(bbResolutions\PLUGIN_PATH) . 'freemius/start.php';
$bbr_fs = fs_dynamic_init(
[
'id' => '6197',
'slug' => 'bbresolutions',
'type' => 'plugin',
'public_key' => 'pk_0861a96a37825f2190d48dffe7493',
'is_premium' => false,
'has_addons' => false,
'has_paid_plans' => false,
'menu' => [
'first-path' => 'plugins.php',
'account' => false,
'contact' => false,
'support' => false,
],
]
);
return $bbr_fs;
}