| 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.4.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 TBD |
| 48 |
*/ |
| 49 |
do_action( 'solidwp/performance/bootstrap_file_loaded' ); |
| 50 |
|
| 51 |
register_activation_hook( __FILE__, new Activator( $core->container() ) ); |
| 52 |
register_deactivation_hook( __FILE__, new Deactivator( $core->container() ) ); |
| 53 |
register_uninstall_hook( __FILE__, [ Uninstaller::class, 'uninstall' ] ); |
| 54 |
|