PluginProbe
WP Directory Kit / 1.5.9
WP Directory Kit v1.5.9
1.5.9 1.5.7 1.5.6 1.5.5 1.5.4 1.5.3 trunk 1.1.0 1.1.6 1.1.8 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.8 All 37 releases
wpdirectorykit / premium_functions.php

premium_functions.php in WP Directory Kit 1.5.9, at premium_functions.php

47 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 if (! defined('WPINC')) {
4 die;
5 }
6
7 //'anonymous_mode' => true,
8
9
10 if (! function_exists('wdk_fs')) {
11 // Create a helper function for easy SDK access.
12 function wdk_fs()
13 {
14 global $wdk_fs;
15
16 if (! isset($wdk_fs)) {
17 // Include Freemius SDK.
18 require_once dirname(__FILE__) . '/vendor/freemius/start.php';
19
20 $wdk_fs = fs_dynamic_init(array(
21 'id' => '10131',
22 'slug' => 'wpdirectorykit',
23 'premium_slug' => 'wdk-pro',
24 'type' => 'plugin',
25 'public_key' => 'pk_024925d617beb399759247d65ac26',
26 'is_premium' => false,
27 'has_addons' => true,
28 'has_paid_plans' => false,
29 'menu' => array(
30 'slug' => 'wdk',
31 'contact' => false,
32 'support' => false,
33 'addons' => false,
34 ),
35 'anonymous_mode' => true,
36 ));
37 }
38
39 return $wdk_fs;
40 }
41
42 // Init Freemius.
43 wdk_fs();
44 // Signal that SDK was initiated.
45 do_action('wdk_fs_loaded');
46 }
47