PluginProbe
Solid Performance – Your No-Code Caching, Performance, & Page Speed Solution / 1.8.0
Solid Performance – Your No-Code Caching, Performance, & Page Speed Solution v1.8.0
2.0.1 trunk 1.0.0 1.1.0 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 1.4.0 1.4.1 1.4.2 1.5.0 1.6.0 1.6.1 1.7.0 1.7.1 1.8.0 1.9.0 2.0.0
solid-performance / solid-performance.php

solid-performance.php in Solid Performance – Your No-Code Caching, Performance, & Page Speed Solution 1.8.0, at solid-performance.php

54 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin Name: Solid Performance
4 * Description: Optimize site performance, boost PageSpeed, and serve a faster website with this simple site optimization tool from SolidWP. Easy page caching setup will accelerate your site in minutes with only a couple of clicks.
5 * Author: SolidWP
6 * Author URI: https://go.solidwp.com/performance-author
7 * Version: 1.8.0
8 * Text Domain: solid-performance
9 * Domain Path: /lang
10 * License: GPLv2-or-later
11 * Requires at least: 6.4
12 * Requires PHP: 7.4
13 *
14 * @package SolidWP\Performance
15 */
16
17 if ( ! defined( 'ABSPATH' ) ) {
18 exit;
19 }
20
21 use SolidWP\Performance\Plugin\Activator;
22 use SolidWP\Performance\Plugin\Deactivator;
23 use SolidWP\Performance\Plugin\Uninstaller;
24
25 require_once __DIR__ . '/vendor/autoload.php';
26 require_once __DIR__ . '/vendor/vendor-prefixed/autoload.php';
27 require_once __DIR__ . '/src/functions/app.php';
28 require_once __DIR__ . '/src/functions/filesystem.php';
29 require_once __DIR__ . '/src/functions/config.php';
30
31 define( 'SWPSP_PLUGIN_FILE', __FILE__ );
32
33 // Get the plugin's singleton instance.
34 $core = swpsp_plugin();
35
36 add_action(
37 'plugins_loaded',
38 static function () use ( $core ): void {
39 // Fully boot the plugin and its service providers.
40 $core->init();
41 }
42 );
43
44 /**
45 * Fires when the SolidWP Performance plugin is loaded.
46 *
47 * @since 1.3.3
48 */
49 do_action( 'solidwp/performance/bootstrap_file_loaded' );
50
51 register_activation_hook( __FILE__, Activator::callback() );
52 register_deactivation_hook( __FILE__, Deactivator::callback() );
53 register_uninstall_hook( __FILE__, [ Uninstaller::class, 'uninstall' ] );
54