PluginProbe ʕ •ᴥ•ʔ
Image Widget / 4.2
Image Widget v4.2
trunk 1.0 2.0 2.1 2.2 2.2.1 2.2.2 3.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.2 3.2.1 3.2.10 3.2.11 3.2.2 3.2.3 3.2.4 3.2.5 3.2.7 3.2.8 3.2.9 3.3 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 4.0 4.0.1 4.0.2 4.0.3 4.0.4 4.0.5 4.0.6 4.0.7 4.0.8 4.0.9 4.1 4.1.1 4.1.2 4.2 4.2.1 4.2.2 4.3 4.3.1 4.4 4.4.1 4.4.11 4.4.12 4.4.2 4.4.3 4.4.4 4.4.5 4.4.6 4.4.7 4.4.8 4.4.9
image-widget / freemius / start.php
image-widget / freemius Last commit date
assets 10 years ago includes 10 years ago templates 10 years ago LICENSE.txt 10 years ago config.php 10 years ago start.php 10 years ago
start.php
95 lines
1 <?php
2 /**
3 * @package Freemius
4 * @copyright Copyright (c) 2015, Freemius, Inc.
5 * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
6 * @since 1.0.3
7 */
8
9 if ( ! defined( 'ABSPATH' ) ) {
10 exit;
11 }
12
13 /**
14 * Freemius hooks collection:
15 * fs_after_license_loaded
16 */
17
18 if ( ! class_exists( 'Freemius' ) ) {
19
20 // Configuration should be loaded first.
21 require_once dirname( __FILE__ ) . '/config.php';
22
23 // Logger must be loaded before any other.
24 require_once WP_FS__DIR_INCLUDES . '/class-fs-logger.php';
25
26 require_once WP_FS__DIR_INCLUDES . '/fs-core-functions.php';
27 // require_once WP_FS__DIR_INCLUDES . '/managers/class-fs-abstract-manager.php';
28 require_once WP_FS__DIR_INCLUDES . '/managers/class-fs-option-manager.php';
29 require_once WP_FS__DIR_INCLUDES . '/managers/class-fs-admin-notice-manager.php';
30 require_once WP_FS__DIR_INCLUDES . '/managers/class-fs-admin-menu-manager.php';
31 require_once WP_FS__DIR_INCLUDES . '/managers/class-fs-key-value-storage.php';
32 require_once WP_FS__DIR_INCLUDES . '/managers/class-fs-license-manager.php';
33 require_once WP_FS__DIR_INCLUDES . '/managers/class-fs-plan-manager.php';
34 require_once WP_FS__DIR_INCLUDES . '/managers/class-fs-plugin-manager.php';
35 require_once WP_FS__DIR_INCLUDES . '/entities/class-fs-entity.php';
36 require_once WP_FS__DIR_INCLUDES . '/entities/class-fs-scope-entity.php';
37 require_once WP_FS__DIR_INCLUDES . '/entities/class-fs-user.php';
38 require_once WP_FS__DIR_INCLUDES . '/entities/class-fs-site.php';
39 require_once WP_FS__DIR_INCLUDES . '/entities/class-fs-plugin.php';
40 require_once WP_FS__DIR_INCLUDES . '/entities/class-fs-plugin-info.php';
41 require_once WP_FS__DIR_INCLUDES . '/entities/class-fs-plugin-tag.php';
42 require_once WP_FS__DIR_INCLUDES . '/entities/class-fs-plugin-plan.php';
43 require_once WP_FS__DIR_INCLUDES . '/entities/class-fs-plugin-license.php';
44 require_once WP_FS__DIR_INCLUDES . '/entities/class-fs-subscription.php';
45 require_once WP_FS__DIR_INCLUDES . '/class-fs-api.php';
46 require_once WP_FS__DIR_INCLUDES . '/class-fs-plugin-updater.php';
47 require_once WP_FS__DIR_INCLUDES . '/class-fs-security.php';
48 require_once WP_FS__DIR_INCLUDES . '/class-freemius-abstract.php';
49 require_once WP_FS__DIR_INCLUDES . '/class-freemius.php';
50
51 /**
52 * Quick shortcut to get Freemius for specified plugin.
53 * Used by various templates.
54 *
55 * @param string $slug
56 *
57 * @return Freemius
58 */
59 function freemius( $slug ) {
60 return Freemius::instance( $slug );
61 }
62
63 /**
64 * @param string $slug
65 * @param number $plugin_id
66 * @param string $public_key
67 * @param bool $is_live Is live or test plugin.
68 * @param bool $is_premium Hints freemius if running the premium plugin or not.
69 *
70 * @return Freemius
71 */
72 function fs_init( $slug, $plugin_id, $public_key, $is_live = true, $is_premium = true ) {
73 $fs = Freemius::instance( $slug );
74 $fs->init( $plugin_id, $public_key, $is_live, $is_premium );
75
76 return $fs;
77 }
78
79 /**
80 * @param array [string]string $plugin
81 *
82 * @return Freemius
83 * @throws Freemius_Exception
84 */
85 function fs_dynamic_init( $plugin ) {
86 $fs = Freemius::instance( $plugin['slug'] );
87 $fs->dynamic_init( $plugin );
88
89 return $fs;
90 }
91
92 function fs_dump_log() {
93 FS_Logger::dump();
94 }
95 }