PluginProbe
Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization / 4.2.13
Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization v4.2.13
4.2.13 4.2.12 4.2.11 4.2.10 4.2.9 4.2.8 4.2.7 4.2.6 4.2.5 2.5.5 2.5.6 2.5.7 3.0.0 3.0.1 3.1.0 3.1.1 3.1.2 3.1.3 3.10.0 3.11.0 3.11.1 3.11.2 3.11.3 3.12.0 3.12.1 All 134 releases
optimole-wp / vendor / codeinwp / themeisle-sdk / start.php

start.php in Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization 4.2.13, at vendor/codeinwp/themeisle-sdk/start.php

61 lines 2.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * File responsible for sdk files loading.
4 *
5 * @package ThemeIsleSDK
6 * @copyright Copyright (c) 2017, Marius Cristea
7 * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
8 * @since 1.1.0
9 */
10
11 namespace ThemeisleSDK;
12
13 if ( ! defined( 'ABSPATH' ) ) {
14 exit;
15 }
16 $products = apply_filters( 'themeisle_sdk_products', array() );
17 $themeisle_library_path = dirname( __FILE__ );
18 $files_to_load = [
19 $themeisle_library_path . '/src/Loader.php',
20 $themeisle_library_path . '/src/Product.php',
21
22 $themeisle_library_path . '/src/Common/Abstract_module.php',
23 $themeisle_library_path . '/src/Common/Module_factory.php',
24
25 $themeisle_library_path . '/src/Modules/Crash_reporter.php',
26 $themeisle_library_path . '/src/Modules/Script_loader.php',
27 $themeisle_library_path . '/src/Modules/Dashboard_widget.php',
28 $themeisle_library_path . '/src/Modules/Rollback.php',
29 $themeisle_library_path . '/src/Modules/Uninstall_feedback.php',
30 $themeisle_library_path . '/src/Modules/Licenser.php',
31 $themeisle_library_path . '/src/Modules/Endpoint.php',
32 $themeisle_library_path . '/src/Modules/Notification.php',
33 $themeisle_library_path . '/src/Modules/Logger.php',
34 $themeisle_library_path . '/src/Modules/Translate.php',
35 $themeisle_library_path . '/src/Modules/Translations.php',
36 $themeisle_library_path . '/src/Modules/Review.php',
37 $themeisle_library_path . '/src/Modules/Recommendation.php',
38 $themeisle_library_path . '/src/Modules/Promotions.php',
39 $themeisle_library_path . '/src/Modules/Welcome.php',
40 $themeisle_library_path . '/src/Modules/Compatibilities.php',
41 $themeisle_library_path . '/src/Modules/About_us.php',
42 $themeisle_library_path . '/src/Modules/Announcements.php',
43 $themeisle_library_path . '/src/Modules/Featured_plugins.php',
44 $themeisle_library_path . '/src/Modules/Float_widget.php',
45 $themeisle_library_path . '/src/Modules/Abstract_Migration.php',
46 $themeisle_library_path . '/src/Modules/Migrator.php',
47 ];
48
49 $files_to_load = array_merge( $files_to_load, apply_filters( 'themeisle_sdk_required_files', [] ) );
50
51 foreach ( $files_to_load as $file ) {
52 if ( is_file( $file ) ) {
53 require_once $file;
54 }
55 }
56 Loader::init();
57
58 foreach ( $products as $product ) {
59 Loader::add_product( $product );
60 }
61