PluginProbe
Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts / 2.3.1
Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts v2.3.1
2.7.7 2.7.6 2.7.5 2.7.4 trunk 1.3 2.0.4 2.0.6 2.1.91 2.2.4 2.2.7 2.2.9 2.3.1 2.3.10 2.4.10 2.4.2 2.4.4 2.4.5 2.4.6 2.4.7 2.4.8 2.4.9 2.6.0 2.6.1 2.7.0 All 28 releases
insert-php / libs / factory / freemius / boot.php

boot.php in Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts 2.3.1, at libs/factory/freemius/boot.php

53 lines 2.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Load Freemius module.
4 *
5 * @author Webcraftic <wordpress.webraftic@gmail.com>, Alex Kovalev <alex.kovalevv@gmail.com>
6 * @since 1.0.0
7 * @package core
8 * @copyright (c) 2018, Webcraftic Ltd
9 *
10 */
11
12 // Exit if accessed directly
13 if ( ! defined( 'ABSPATH' ) ) {
14 exit;
15 }
16
17 if ( defined( 'FACTORY_FREEMIUS_110_LOADED' ) ) {
18 return;
19 }
20
21 define( 'FACTORY_FREEMIUS_110_VERSION', '1.1.0' );
22
23 define( 'FACTORY_FREEMIUS_110_LOADED', true );
24 define( 'FACTORY_FREEMIUS_110_DIR', dirname( __FILE__ ) );
25 define( 'FACTORY_FREEMIUS_110_URL', plugins_url( null, __FILE__ ) );
26
27 #comp merge
28 // Freemius
29 require_once( FACTORY_FREEMIUS_110_DIR . '/includes/entities/class-freemius-entity.php' );
30 require_once( FACTORY_FREEMIUS_110_DIR . '/includes/entities/class-freemius-scope.php' );
31 require_once( FACTORY_FREEMIUS_110_DIR . '/includes/entities/class-freemius-user.php' );
32 require_once( FACTORY_FREEMIUS_110_DIR . '/includes/entities/class-freemius-site.php' );
33 require_once( FACTORY_FREEMIUS_110_DIR . '/includes/entities/class-freemius-license.php' );
34 require_once( FACTORY_FREEMIUS_110_DIR . '/includes/licensing/class-freemius-provider.php' );
35 require_once( FACTORY_FREEMIUS_110_DIR . '/includes/updates/class-freemius-repository.php' );
36
37 if ( ! class_exists( 'Freemius_Api_WordPress' ) ) {
38 require_once FACTORY_FREEMIUS_110_DIR . '/includes/sdk/FreemiusWordPress.php';
39 }
40
41 require_once( FACTORY_FREEMIUS_110_DIR . '/includes/class-freemius-api.php' );
42
43 /**
44 * @param Wbcr_Factory422_Plugin $plugin
45 */
46 add_action( 'wbcr_factory_freemius_110_plugin_created', function ( $plugin ) {
47 # Устанавливаем класс провайдера лицензий для премиум менеджера
48 $plugin->set_license_provider( 'freemius', 'WBCR\Factory_Freemius_110\Premium\Provider' );
49 # Устанавливаем класс репозитория обновлений для менеджера обновлений
50 $plugin->set_update_repository( 'freemius', 'WBCR\Factory_Freemius_110\Updates\Freemius_Repository' );
51 } );
52 #endcomp
53