PluginProbe
Button Block – Stylish buttons that get more clicks / 1.2.5
Button Block – Stylish buttons that get more clicks v1.2.5
1.2.6 1.2.5 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 1.1.9 1.2.0 1.2.1 All 28 releases
button-block / includes / fs-lite.php

fs-lite.php in Button Block – Stylish buttons that get more clicks 1.2.5, at includes/fs-lite.php

42 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( !defined( 'ABSPATH' ) ) { exit; }
3
4 if ( ! function_exists( 'btnb_fs' ) ) {
5 /**
6 * Initializes and returns the Freemius Lite SDK instance for the free version.
7 *
8 * @return \FSLite The Freemius Lite SDK instance.
9 */
10 function btnb_fs() {
11 global $btnb_fs;
12
13 if ( !isset( $btnb_fs ) ) {
14 require_once BTNB_DIR_PATH . '/vendor/freemius-lite/start.php';
15
16 $disableAdminMenu = 'true' === get_option( 'button_block_option', 'false' );
17
18 $btnb_fs = fs_lite_dynamic_init( [
19 'id' => '13491',
20 'slug' => 'button-block',
21 '__FILE__' => BTNB_DIR_PATH . 'index.php',
22 'premium_slug' => 'button-block-pro',
23 'type' => 'plugin',
24 'public_key' => 'pk_8fb5be7805414bb29e5b06c24566a',
25 'is_premium' => false,
26 'menu' => [
27 'slug' => $disableAdminMenu ? 'button-block' : 'edit.php?post_type=button-block',
28 'first-path' => $disableAdminMenu ? 'tools.php?page=button-block' : 'edit.php?post_type=button-block&page=button-block',
29 'parent' => $disableAdminMenu ? [
30 'slug' => 'tools.php'
31 ] : null
32 ]
33 ] );
34 }
35
36 return $btnb_fs;
37 }
38
39 btnb_fs();
40 do_action( 'btnb_fs_loaded' );
41 }
42